Author: assaf
Date: Mon Sep 22 13:42:52 2008
New Revision: 697980
URL: http://svn.apache.org/viewvc?rev=697980&view=rev
Log:
Ugly fix to ugly test code.
Modified:
incubator/buildr/trunk/spec/java/tests_spec.rb
Modified: incubator/buildr/trunk/spec/java/tests_spec.rb
URL:
http://svn.apache.org/viewvc/incubator/buildr/trunk/spec/java/tests_spec.rb?rev=697980&r1=697979&r2=697980&view=diff
==============================================================================
--- incubator/buildr/trunk/spec/java/tests_spec.rb (original)
+++ incubator/buildr/trunk/spec/java/tests_spec.rb Mon Sep 22 13:42:52 2008
@@ -46,7 +46,7 @@
define('foo') { test.using(:junit) }
project('foo').test.compile.dependencies.should
include(artifact("junit:junit:jar:1.2.3"))
end
-
+
it 'should include JMock dependencies' do
define('foo') { test.using(:junit) }
project('foo').test.compile.dependencies.should
include(artifact("jmock:jmock:jar:#{JMock.version}"))
@@ -281,6 +281,12 @@
fork_tests :each
project('foo').test.failed_tests.should be_empty
end
+
+ after do
+ # Yes, this is ugly. Better solution?
+ Buildr::JUnit.instance_eval { @dependencies = nil }
+ Buildr::JMock.instance_eval { @dependencies = nil }
+ end
end