Return-Path: X-Original-To: apmail-buildr-commits-archive@www.apache.org Delivered-To: apmail-buildr-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 51618DFDA for ; Tue, 18 Dec 2012 19:31:15 +0000 (UTC) Received: (qmail 37104 invoked by uid 500); 18 Dec 2012 19:31:15 -0000 Delivered-To: apmail-buildr-commits-archive@buildr.apache.org Received: (qmail 36965 invoked by uid 500); 18 Dec 2012 19:31:10 -0000 Mailing-List: contact commits-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@buildr.apache.org Delivered-To: mailing list commits@buildr.apache.org Received: (qmail 36910 invoked by uid 99); 18 Dec 2012 19:31:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 19:31:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 19:31:07 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id EEB7F238896F; Tue, 18 Dec 2012 19:30:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1423592 - /buildr/trunk/spec/packaging/artifact_spec.rb Date: Tue, 18 Dec 2012 19:30:46 -0000 To: commits@buildr.apache.org From: donaldp@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121218193046.EEB7F238896F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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