1 Story: Getting correct output
4 I want to see output only once
5 So that I don't get confused
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"
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"
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\//