]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/rspec-1.1.2/stories/interop/test_case_with_should_methods
added RSpec and RSpec on Rails
[rails.git] / vendor / gems / rspec-1.1.2 / stories / interop / test_case_with_should_methods
diff --git a/vendor/gems/rspec-1.1.2/stories/interop/test_case_with_should_methods b/vendor/gems/rspec-1.1.2/stories/interop/test_case_with_should_methods
new file mode 100644 (file)
index 0000000..31f28d3
--- /dev/null
@@ -0,0 +1,17 @@
+Story: Test::Unit::TestCase extended by rspec with should methods
+
+  As an RSpec adopter with existing Test::Unit tests
+  I want to use should_* methods in a Test::Unit::TestCase
+  So that I use RSpec with classes and methods that look more like RSpec examples
+
+  Scenario: Run with ruby
+    Given the file test/test_case_with_should_methods.rb
+    When I run it with the ruby interpreter
+    Then PENDING the exit code should be 256
+    And the stdout should match "5 examples, 3 failures"
+
+  Scenario: Run with spec
+    Given the file test/test_case_with_should_methods.rb
+    When I run it with the spec script
+    Then the exit code should be 256
+    And the stdout should match "5 examples, 3 failures"