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 2010/03/15 05:01:42 UTC

svn commit: r923049 - /buildr/trunk/spec/java/ant_spec.rb

Author: boisvert
Date: Mon Mar 15 04:01:42 2010
New Revision: 923049

URL: http://svn.apache.org/viewvc?rev=923049&view=rev
Log:
Clean up after Ant version test

Modified:
    buildr/trunk/spec/java/ant_spec.rb

Modified: buildr/trunk/spec/java/ant_spec.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/spec/java/ant_spec.rb?rev=923049&r1=923048&r2=923049&view=diff
==============================================================================
--- buildr/trunk/spec/java/ant_spec.rb (original)
+++ buildr/trunk/spec/java/ant_spec.rb Mon Mar 15 04:01:42 2010
@@ -20,9 +20,13 @@ require File.join(File.dirname(__FILE__)
 describe Buildr::Ant do
 
   it 'should pick Ant version from ant build settings' do
-    Buildr::Ant.instance_eval { @dependencies = nil }
-    write 'build.yaml', 'ant: 1.2.3'
-    Buildr::Ant.dependencies.should include("org.apache.ant:ant:jar:1.2.3")
+    begin
+      Buildr::Ant.instance_eval { @dependencies = nil }
+      write 'build.yaml', 'ant: 1.2.3'
+      Buildr::Ant.dependencies.should include("org.apache.ant:ant:jar:1.2.3")
+    ensure
+      Buildr::Ant.instance_eval { @dependencies = nil }
+    end
   end
 
   it 'should have REQUIRES up to version 1.5 since it was deprecated in version 1.3.3' do