buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject svn commit: r1423592 - /buildr/trunk/spec/packaging/artifact_spec.rb
Date Tue, 18 Dec 2012 19:30:46 GMT
Author: donaldp
Date: Tue Dec 18 19:30:46 2012
New Revision: 1423592

URL: http://svn.apache.org/viewvc?rev=1423592&view=rev
Log:
pom_xml returns a proc, update tests to reflect this

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=1423592&r1=1423591&r2=1423592&view=diff
==============================================================================
--- buildr/trunk/spec/packaging/artifact_spec.rb (original)
+++ buildr/trunk/spec/packaging/artifact_spec.rb Tue Dec 18 19:30:46 2012
@@ -106,7 +106,7 @@ describe Artifact do
 
   it 'should pass if POM provided' do
     repositories.remote = 'http://buildr.apache.org/repository/noexist'
-    @artifact.pom.enhance { |task| write task.name, @artifact.pom_xml }
+    @artifact.pom.enhance { |task| write task.name, @artifact.pom_xml.call }
     write repositories.locate(@artifact)
     lambda { @artifact.invoke }.should_not raise_error
   end
@@ -1009,7 +1009,7 @@ describe Buildr, '#transitive' do
   before do
     repositories.remote = 'http://buildr.apache.org/repository/noexist'
     @simple = [ 'saxon:saxon:jar:8.4', 'saxon:saxon-dom:jar:8.4', 'saxon:saxon-xpath:jar:8.4'
]
-    @simple.map { |spec| artifact(spec).pom }.each { |task| write task.name, task.pom_xml
}
+    @simple.map { |spec| artifact(spec).pom }.each { |task| write task.name, task.pom_xml.call
}
     @provided = @simple.first
     @complex = 'group:app:jar:1.0'
     write artifact(@complex).pom.to_s, <<-XML



Mime
View raw message