buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boisv...@apache.org
Subject svn commit: r820489 - /buildr/trunk/spec/core/application_spec.rb
Date Wed, 30 Sep 2009 23:09:07 GMT
Author: boisvert
Date: Wed Sep 30 23:09:07 2009
New Revision: 820489

URL: http://svn.apache.org/viewvc?rev=820489&view=rev
Log:
BUILDR-323: rakelib directory test fails due to array ordering issue (Joel Muzzerall)

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

Modified: buildr/trunk/spec/core/application_spec.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/spec/core/application_spec.rb?rev=820489&r1=820488&r2=820489&view=diff
==============================================================================
--- buildr/trunk/spec/core/application_spec.rb (original)
+++ buildr/trunk/spec/core/application_spec.rb Wed Sep 30 23:09:07 2009
@@ -293,8 +293,9 @@
       write_task 'tasks/bar.rake'
       write_task 'extensions/foo.rake'
       loaded_tasks.should have(2).tasks
-      loaded_tasks[0].should =~ %r{extensions/amp\.rake$}
-      loaded_tasks[1].should =~ %r{extensions/foo\.rake$}
+      %w[amp foo].each do |filename|
+        loaded_tasks.select{|x| x =~ %r{extensions/#{filename}\.rake}}.should have(1).entry
+      end
     end
     
     it 'should load files from all the directories specified in the rakelib option' do



Mime
View raw message