]> git.openstreetmap.org Git - rails.git/blob - 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
1 Story: Test::Unit::TestCase extended by rspec with should methods
2
3   As an RSpec adopter with existing Test::Unit tests
4   I want to use should_* methods in a Test::Unit::TestCase
5   So that I use RSpec with classes and methods that look more like RSpec examples
6
7   Scenario: Run with ruby
8     Given the file test/test_case_with_should_methods.rb
9     When I run it with the ruby interpreter
10     Then PENDING the exit code should be 256
11     And the stdout should match "5 examples, 3 failures"
12
13   Scenario: Run with spec
14     Given the file test/test_case_with_should_methods.rb
15     When I run it with the spec script
16     Then the exit code should be 256
17     And the stdout should match "5 examples, 3 failures"