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/01 01:09:07 UTC

svn commit: r820489 - /buildr/trunk/spec/core/application_spec.rb

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