]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/rspec-1.1.2/stories/example_groups/output
added RSpec and RSpec on Rails
[rails.git] / vendor / gems / rspec-1.1.2 / stories / example_groups / output
diff --git a/vendor/gems/rspec-1.1.2/stories/example_groups/output b/vendor/gems/rspec-1.1.2/stories/example_groups/output
new file mode 100644 (file)
index 0000000..4947bdc
--- /dev/null
@@ -0,0 +1,25 @@
+Story: Getting correct output
+
+  As an RSpec user
+  I want to see output only once
+  So that I don't get confused
+
+  Scenario: Run with ruby
+    Given the file spec/simple_spec.rb
+    When I run it with the ruby interpreter
+    Then the exit code should be 0
+    And the stdout should not match /\d+ tests, \d+ assertions, \d+ failures, \d+ errors/m
+    And the stdout should match "1 example, 0 failures"
+
+  Scenario: Run with CommandLine object
+    Given the file spec/simple_spec.rb
+    When I run it with the CommandLine object
+    Then the exit code should be 0
+    And the stdout should not match "Loaded suite"
+    And the stdout should not match /\d+ tests, \d+ assertions, \d+ failures, \d+ errors/m
+    And the stdout should match "1 example, 0 failures"
+
+  Scenario: Tweak backtrace
+    Given the file stories/failing_story.rb
+    When I run it with the ruby interpreter
+    Then the stdout should not match /\/lib\/spec\//