Skip to content

Commit

Permalink
Cucumber command line feature for runnig specs with no examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinko authored and dchelimsky committed Jun 24, 2010
1 parent 5e47813 commit 8ff6452
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions features/command_line/exit_status.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""

0 comments on commit 8ff6452

Please sign in to comment.