buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lac...@apache.org
Subject svn commit: r688306 - /incubator/buildr/trunk/spec/test_spec.rb
Date Sat, 23 Aug 2008 13:06:40 GMT
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



Mime
View raw message