buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boisv...@apache.org
Subject svn commit: r881459 - /buildr/trunk/spec/core/test_spec.rb
Date Tue, 17 Nov 2009 19:45:48 GMT
Author: boisvert
Date: Tue Nov 17 19:45:48 2009
New Revision: 881459

URL: http://svn.apache.org/viewvc?rev=881459&view=rev
Log:
Add spec covering test=all with build target

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=881459&r1=881458&r2=881459&view=diff
==============================================================================
--- buildr/trunk/spec/core/test_spec.rb (original)
+++ buildr/trunk/spec/core/test_spec.rb Tue Nov 17 19:45:48 2009
@@ -728,6 +728,13 @@
     lambda { task('test').invoke rescue nil }.should run_tasks('foo:test', 'bar:test')
   end
 
+  it 'should ignore failure if options.test is :all and target is build task ' do
+    define('foo') { test { fail } }
+    define('bar') { test { fail } }
+    options.test = :all 
+    lambda { task('build').invoke rescue nil }.should run_tasks('foo:test', 'bar:test')
+  end
+
   it 'should ignore failure if environment variable test is \'all\'' do
     define('foo') { test { fail } }
     define('bar') { test { fail } }



Mime
View raw message