]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/rspec-1.1.2/stories/example_groups/output
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 / output
1 Story: Getting correct output
2
3   As an RSpec user
4   I want to see output only once
5   So that I don't get confused
6
7   Scenario: Run with ruby
8     Given the file spec/simple_spec.rb
9     When I run it with the ruby interpreter
10     Then the exit code should be 0
11     And the stdout should not match /\d+ tests, \d+ assertions, \d+ failures, \d+ errors/m
12     And the stdout should match "1 example, 0 failures"
13
14   Scenario: Run with CommandLine object
15     Given the file spec/simple_spec.rb
16     When I run it with the CommandLine object
17     Then the exit code should be 0
18     And the stdout should not match "Loaded suite"
19     And the stdout should not match /\d+ tests, \d+ assertions, \d+ failures, \d+ errors/m
20     And the stdout should match "1 example, 0 failures"
21
22   Scenario: Tweak backtrace
23     Given the file stories/failing_story.rb
24     When I run it with the ruby interpreter
25     Then the stdout should not match /\/lib\/spec\//