You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by bo...@apache.org on 2009/10/03 18:10:29 UTC

svn commit: r821349 - /buildr/trunk/lib/buildr/java/bdd.rb

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