You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by as...@apache.org on 2008/08/05 00:20:38 UTC

svn commit: r682529 - /incubator/buildr/trunk/spec/test_spec.rb

Author: assaf
Date: Mon Aug  4 15:20:37 2008
New Revision: 682529

URL: http://svn.apache.org/viewvc?rev=682529&view=rev
Log:
Second test patch for BUILDR-116 to keep the first patch company.

Modified:
    incubator/buildr/trunk/spec/test_spec.rb

Modified: incubator/buildr/trunk/spec/test_spec.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/spec/test_spec.rb?rev=682529&r1=682528&r2=682529&view=diff
==============================================================================
--- incubator/buildr/trunk/spec/test_spec.rb (original)
+++ incubator/buildr/trunk/spec/test_spec.rb Mon Aug  4 15:20:37 2008
@@ -188,6 +188,12 @@
     project('foo').test.dependencies.should include(project('foo').compile.target)
   end
 
+  it 'should include the main compile target in its dependencies, even when using non standard directories' do
+    write 'src/java/Nothing.java', 'class Nothing {}'
+    define('foo') { compile path_to('src/java') }
+    project('foo').test.dependencies.should include(project('foo').compile.target)
+  end
+
   it 'should include the main resources target in its dependencies' do
     write 'src/main/resources/config.xml'
     define('foo').test.dependencies.should include(project('foo').resources.target)