Permalink
Browse files

add example to show using full example name

  • Loading branch information...
1 parent 991f24a commit 2a5e5104ccf12b6d9f466ab3c86bc60951c42721 @dchelimsky dchelimsky committed Jun 13, 2010
Showing with 6 additions and 2 deletions.
  1. +6 −2 features/command_line/example_name_option.feature
@@ -29,18 +29,22 @@ Feature: example name option
When I run "rspec . --example nothing_like_this"
Then I should see "0 examples, 0 failures"
- Scenario: all matches
+ Scenario: match on one word
When I run "rspec . --example example"
Then I should see "4 examples, 0 failures"
Scenario: one match in each file
When I run "rspec . --example 'first example'"
Then I should see "2 examples, 0 failures"
- Scenario: one match in one file
+ Scenario: one match in one file using just the example name
When I run "rspec . --example 'first example in first group'"
Then I should see "1 example, 0 failures"
+ Scenario: one match in one file using the example name and the group name
+ When I run "rspec . --example 'first group first example in first group'"
+ Then I should see "1 example, 0 failures"
+
Scenario: one match in one file using regexp
When I run "rspec . --example 'first .* first example'"
Then I should see "1 example, 0 failures"

0 comments on commit 2a5e510

Please sign in to comment.