You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by la...@apache.org on 2008/08/23 15:06:40 UTC

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

Author: lacton
Date: Sat Aug 23 06:06:40 2008
New Revision: 688306

URL: http://svn.apache.org/viewvc?rev=688306&view=rev
Log:
BUILDR-133: fixed tests that were not testing what they were meant to test

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=688306&r1=688305&r2=688306&view=diff
==============================================================================
--- incubator/buildr/trunk/spec/test_spec.rb (original)
+++ incubator/buildr/trunk/spec/test_spec.rb Sat Aug 23 06:06:40 2008
@@ -658,7 +658,8 @@
   it 'should execute only the named tests' do
     write 'src/test/java/TestSomething.java',
       'public class TestSomething extends junit.framework.TestCase { public void testNothing() {} }'
-    write 'src/test/java/TestFails.java', 'class TestFails {}'
+    write 'src/test/java/TestFails.java',
+      'public class TestFails extends junit.framework.TestCase { public void testFailure() { fail(); } }'
     define 'foo'
     task('test:Something').invoke
   end
@@ -925,10 +926,12 @@
     project('foo').test.tests.should_not include('baz')
   end
 
-  it 'should execute only the named tasts' do
+  it 'should execute only the named tests' do
     write 'src/test/java/TestSomething.java',
       'public class TestSomething extends junit.framework.TestCase { public void testNothing() {} }'
-    write 'src/test/java/TestFails.java', 'class TestFails {}'
+    write 'src/test/java/TestFails.java',
+      'public class TestFails extends junit.framework.TestCase { public void testFailure() { fail(); } }'
+    define('foo') { test.using :junit, :integration }
     task('integration:Something').invoke
   end
 end