You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by vb...@apache.org on 2008/09/23 21:14:11 UTC
svn commit: r698307 - /incubator/buildr/trunk/spec/java/bdd_spec.rb
Author: vborja
Date: Tue Sep 23 12:14:10 2008
New Revision: 698307
URL: http://svn.apache.org/viewvc?rev=698307&view=rev
Log:
Make jtestr, rspec examples silnt.
Modified:
incubator/buildr/trunk/spec/java/bdd_spec.rb
Modified: incubator/buildr/trunk/spec/java/bdd_spec.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/spec/java/bdd_spec.rb?rev=698307&r1=698306&r2=698307&view=diff
==============================================================================
--- incubator/buildr/trunk/spec/java/bdd_spec.rb (original)
+++ incubator/buildr/trunk/spec/java/bdd_spec.rb Tue Sep 23 12:14:10 2008
@@ -19,7 +19,7 @@
def foo(*args, &prc)
define('foo', *args) do
- test.using :rspec
+ test.using :rspec, :output => false
if prc
instance_eval(&prc)
else
@@ -133,8 +133,9 @@
foo do
hello = _('hello')
write('src/spec/ruby/jtestr_config.rb', "File.open('#{hello}', 'w') { |f| f.write 'HELLO' }")
+ write('src/spec/ruby/some_spec.rb')
test.invoke
- File.exist?(hello).should == true
+ File.should be_exist(hello)
File.read(hello).should == 'HELLO'
end
end
@@ -165,14 +166,14 @@
package example;
public class Success {
@org.testng.annotations.Test
- public void annotated() { org.testng.Assert.assertTrue(true); }
+ public void annotatedSuccess() { org.testng.Assert.assertTrue(true); }
}
JAVA
write('src/test/java/example/Failure.java', <<-JAVA)
package example;
public class Failure {
@org.testng.annotations.Test
- public void annotated() { org.testng.Assert.fail("FAIL"); }
+ public void annotatedFail() { org.testng.Assert.fail("FAIL"); }
}
JAVA
foo do