buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject svn commit: r1340341 - /buildr/trunk/spec/core/test_spec.rb
Date Sat, 19 May 2012 04:13:33 GMT
Author: donaldp
Date: Sat May 19 04:13:33 2012
New Revision: 1340341

URL: http://svn.apache.org/viewvc?rev=1340341&view=rev
Log:
Update test so that tests have deterministic ordering with the new versions of Rake

Modified:
    buildr/trunk/spec/core/test_spec.rb

Modified: buildr/trunk/spec/core/test_spec.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/spec/core/test_spec.rb?rev=1340341&r1=1340340&r2=1340341&view=diff
==============================================================================
--- buildr/trunk/spec/core/test_spec.rb (original)
+++ buildr/trunk/spec/core/test_spec.rb Sat May 19 04:13:33 2012
@@ -747,9 +747,11 @@ describe Rake::Task, 'test' do
   end
 
   it 'should stop at first failure' do
-    define('foo') { test { fail } }
-    define('bar') { test { fail } }
-    lambda { task('test').invoke rescue nil }.should run_tasks('foo:test').but_not('bar:test')
+    define('myproject') do
+      define('foo') { test { fail } }
+      define('bar') { test { fail } }
+    end
+    lambda { task('test').invoke rescue nil }.should run_tasks('myproject:bar:test').but_not('myproject:foo:test')
   end
 
   it 'should ignore failure if options.test is :all' do



Mime
View raw message