X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ddd5b4cf19a92582fd114914be5bd5a04d3522a7..3f607d565bc0e2c7b1b738301c11c16d069913d5:/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 index 000000000..3912429e3 --- /dev/null +++ b/vendor/gems/rspec-1.1.2/stories/resources/test/test_case_with_should_methods.rb @@ -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