Permalink
Browse files

Report the exclusion filter

  • Loading branch information...
1 parent 029e697 commit eae6b4384e71ba391750c0b8bd0ca6d724718202 @patmaddox patmaddox committed Apr 16, 2011
Showing with 12 additions and 0 deletions.
  1. +10 −0 features/command_line/tag.feature
  2. +2 −0 lib/rspec/core/world.rb
View
10 features/command_line/tag.feature
@@ -58,17 +58,27 @@ Feature: --tag option
Scenario: exclude examples with a simple tag
When I run `rspec . --tag ~skip`
+ Then the output should contain "Run filtered excluding {:skip=>true}"
Then the examples should all pass
Scenario: exclude examples with a simple tag and @
When I run `rspec . --tag ~@skip`
+ Then the output should contain "Run filtered excluding {:skip=>true}"
Then the examples should all pass
Scenario: exclude examples with a name:value tag
When I run `rspec . --tag ~speed:slow`
+ Then the output should contain:
+ """
+ Run filtered excluding {:speed=>"slow"}
+ """
Then the examples should all pass
Scenario: exclude examples with a name:value tag and @
When I run `rspec . --tag ~@speed:slow`
+ Then the output should contain:
+ """
+ Run filtered excluding {:speed=>"slow"}
+ """
Then the examples should all pass
View
2 lib/rspec/core/world.rb
@@ -76,6 +76,8 @@ def announce_exclusion_filter
@configuration.reporter.message(
"No examples were matched. Perhaps #{exclusion_filter.inspect} is excluding everything?")
example_groups.clear
+ else
+ @configuration.reporter.message "Run filtered excluding #{exclusion_filter.inspect}"
end
end

0 comments on commit eae6b43

Please sign in to comment.