]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/rspec-1.1.2/stories/example_groups/example_group_with_should_methods
Show whether a trace is public or private in the trace list, so that a user can easil...
[rails.git] / vendor / gems / rspec-1.1.2 / stories / example_groups / example_group_with_should_methods
1 Story: Spec::ExampleGroup with should methods
2
3   As an RSpec adopter accustomed to classes and methods
4   I want to use should_* methods in an ExampleGroup
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 spec/example_group_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 "2 examples, 1 failure"
12
13   Scenario: Run with spec
14   Given the file spec/example_group_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 "2 examples, 1 failure"