Upgraded Rails and RSpec
[monkeycharger.git] / vendor / plugins / rspec / rspec / stories / output
blob4c5a8a14747695a71b8798f25800205030c61817
1 Story: Getting correct output
3   As an RSpec user
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"