Skip to content

Instantly share code, notes, and snippets.

@justinko
Created June 24, 2010 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinko/450940 to your computer and use it in GitHub Desktop.
Save justinko/450940 to your computer and use it in GitHub Desktop.
diff --git features/command_line/exit_status.feature features/command_line/exit_status.feature
index b0c23f8..070831f 100644
--- features/command_line/exit_status.feature
+++ features/command_line/exit_status.feature
@@ -47,3 +47,13 @@ Feature: exit status
"""
1 example, 1 failure
"""
+
+ Scenario: exit with 0 when no examples are run
+ Given a file named "no_examples_spec.rb" with:
+ """
+ """
+ When I run "rspec no_examples_spec.rb"
+ Then it should pass with:
+ """
+ 0 examples, 0 failures
+ """
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment