spec/java/tests_spec.rb in assaf-buildr-1.3.3 vs spec/java/tests_spec.rb in assaf-buildr-1.3.4
- old
+ new
@@ -38,9 +38,14 @@
define('foo') { test.using(:junit) }
project('foo').test.compile.dependencies.should include(artifact("junit:junit:jar:#{JUnit.version}"))
project('foo').test.dependencies.should include(artifact("junit:junit:jar:#{JUnit.version}"))
end
+ it 'should have REQUIRES up to version 1.5 since it was deprecated in 1.3.3' do
+ Buildr::VERSION.should < '1.5'
+ lambda { JUnit::REQUIRES }.should_not raise_error
+ end
+
it 'should pick JUnit version from junit build settings' do
Buildr::JUnit.instance_eval { @dependencies = nil }
write 'build.yaml', 'junit: 1.2.3'
define('foo') { test.using(:junit) }
project('foo').test.compile.dependencies.should include(artifact("junit:junit:jar:1.2.3"))