Upgraded Rails and RSpec
[monkeycharger.git] / vendor / plugins / rspec / rspec / stories / tu_example_group_subclass_with_should_methods
blobc0d06960c7fcb0728eaa650f31752e83ce966b74
1 Story: Test::Unit::TestCase::ExampleGroup subclass with should methods
3   As an RSpec adopter with existing Test::Unit tests
4   I want to use should_* methods in a Test::Unit::TestCase::ExampleGroup subclass
5   So that I use RSpec with classes and methods that look more like RSpec examples
7   Scenario: Run with ruby
8     Given the file test/tu_example_group_subclass_with_should_methods.rb
9     When I run it with the ruby interpreter
10     Then the exit code should be 256
11     And the stdout should match "4 examples, 2 failures"
13   Scenario: Run with spec
14     Given the file test/tu_example_group_subclass_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 "4 examples, 2 failures"