You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2012/05/18 10:30:21 UTC

svn commit: r1340029 - /buildr/trunk/spec/packaging/artifact_spec.rb

Author: donaldp
Date: Fri May 18 08:30:20 2012
New Revision: 1340029

URL: http://svn.apache.org/viewvc?rev=1340029&view=rev
Log:
Use monkey patched end_with? rather than end_with as the second form has disappeared from whatever dependency provided it in the past.

Modified:
    buildr/trunk/spec/packaging/artifact_spec.rb

Modified: buildr/trunk/spec/packaging/artifact_spec.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/spec/packaging/artifact_spec.rb?rev=1340029&r1=1340028&r2=1340029&view=diff
==============================================================================
--- buildr/trunk/spec/packaging/artifact_spec.rb (original)
+++ buildr/trunk/spec/packaging/artifact_spec.rb Fri May 18 08:30:20 2012
@@ -100,7 +100,7 @@ describe Artifact do
 
   it 'should handle lack of POM gracefully' do
     repositories.remote = 'http://example.com'
-    URI.should_receive(:download).twice { |uri, target, options| raise URI::NotFoundError if uri.to_s.ends_with('.pom') }
+    URI.should_receive(:download).twice { |*args| raise URI::NotFoundError if args[0].to_s.end_with?('.pom') }
     lambda { @artifact.invoke }.should_not raise_error
   end