Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add example to show using full example name

  • Loading branch information...
commit 2a5e5104ccf12b6d9f466ab3c86bc60951c42721 1 parent 991f24a
David Chelimsky dchelimsky authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 features/command_line/example_name_option.feature
8 features/command_line/example_name_option.feature
View
@@ -29,7 +29,7 @@ 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"
@@ -37,10 +37,14 @@ Feature: example name option
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"
Please sign in to comment.
Something went wrong with that request. Please try again.