]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/rspec-1.1.2/stories/resources/test/test_case_with_should_methods.rb
added RSpec and RSpec on Rails
[rails.git] / vendor / gems / rspec-1.1.2 / stories / resources / test / test_case_with_should_methods.rb
diff --git a/vendor/gems/rspec-1.1.2/stories/resources/test/test_case_with_should_methods.rb b/vendor/gems/rspec-1.1.2/stories/resources/test/test_case_with_should_methods.rb
new file mode 100644 (file)
index 0000000..3912429
--- /dev/null
@@ -0,0 +1,30 @@
+$:.push File.join(File.dirname(__FILE__), *%w[.. .. .. lib])
+require 'test/unit'
+require 'spec'
+require 'spec/interop/test'
+
+class MySpec < Test::Unit::TestCase
+  def should_pass_with_should
+    1.should == 1
+  end
+
+  def should_fail_with_should
+    1.should == 2
+  end
+
+  def should_pass_with_assert
+    assert true
+  end
+  
+  def should_fail_with_assert
+    assert false
+  end
+
+  def test
+    raise "This is not a real test"
+  end
+
+  def test_ify
+    raise "This is a real test"
+  end
+end
\ No newline at end of file