buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djspie...@apache.org
Subject svn commit: r785671 - /buildr/trunk/spec/scala/bdd_spec.rb
Date Wed, 17 Jun 2009 15:28:08 GMT
Author: djspiewak
Date: Wed Jun 17 15:28:07 2009
New Revision: 785671

URL: http://svn.apache.org/viewvc?rev=785671&view=rev
Log:
Removed obsolete test cases

Modified:
    buildr/trunk/spec/scala/bdd_spec.rb

Modified: buildr/trunk/spec/scala/bdd_spec.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/spec/scala/bdd_spec.rb?rev=785671&r1=785670&r2=785671&view=diff
==============================================================================
--- buildr/trunk/spec/scala/bdd_spec.rb (original)
+++ buildr/trunk/spec/scala/bdd_spec.rb Wed Jun 17 15:28:07 2009
@@ -99,20 +99,6 @@
     lambda { define('foo').test.invoke }.should_not raise_error
   end
 
-  it 'should fail when ScalaTest test case fails' do
-    write 'src/spec/scala/FailingSpecs.scala', <<-SCALA
-      object FailingSpecs extends org.specs.Specification {
-        "it" should {
-          "add" in {
-            val sum = 1 + 1
-            sum mustEqual 42
-          }
-        }
-      }
-    SCALA
-    lambda { define('foo').test.invoke }.should raise_error(RuntimeError, /Tests failed/)
rescue nil
-  end
-
   it 'should report failed test names' do
     write 'src/spec/scala/FailingSpecs.scala', <<-SCALA
       object FailingSpecs extends org.specs.Specification {
@@ -128,25 +114,6 @@
     project('foo').test.failed_tests.should include('FailingSpecs$')
   end
   
-  it 'should compile and run specifications with "Specs" suffix' do
-    write 'src/spec/scala/HelloWorldSpecs.scala', <<-SCALA
-      import org.specs._
-  
-      object HelloWorldSpecs extends Specification {
-        "'hello world' has 11 characters" in {
-          "hello world".size must beEqualTo(11)
-        }
-        "'hello world' matches 'h.* w.*'" in {
-          "hello world" must beMatching("h.* w.*")
-        }
-      }
-    SCALA
-    define('foo')
-    project('foo').test.invoke
-    project('foo').test.passed_tests.should include('HelloWorldSpecs$')
-  end
-
-
   it 'should fail if specifications fail' do
     write 'src/spec/scala/StringSpecs.scala', <<-SCALA
       import org.specs._



Mime
View raw message