Author: boisvert
Date: Sat Oct  3 16:10:28 2009
New Revision: 821349

URL: http://svn.apache.org/viewvc?rev=821349&view=rev
Log:
Test results go in the results file

Modified:
    buildr/trunk/lib/buildr/java/bdd.rb

Modified: buildr/trunk/lib/buildr/java/bdd.rb
URL: 
http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/java/bdd.rb?rev=821349&r1=821348&r2=821349&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/java/bdd.rb (original)
+++ buildr/trunk/lib/buildr/java/bdd.rb Sat Oct  3 16:10:28 2009
@@ -94,7 +94,7 @@
       
       Buildr.write(runner.file, runner.content)
       rm_f runner.result
-      
+
       if RUBY_PLATFORM[/java/] && !options.fork
         runtime = new_runtime
         
runtime.getObject.java.lang.System.getProperties().putAll(options[:properties] 
|| {})
@@ -267,7 +267,8 @@
         argv.push *<%= tests.inspect %>
         parser.order!(argv)
         $rspec_options = parser.options
-        Buildr::TestFramework::TestResult::Error.guard('<%= runner.file %>') do
+        
+        Buildr::TestFramework::TestResult::Error.guard('<%= runner.result %>') 
do
           ::Spec::Runner::CommandLine.run($rspec_options)
         end
         exit 0 # let buildr figure the result from the yaml file


Reply via email to