Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 7288702

Browse files
NickLaMuroJonRowe
authored andcommitted
Clarify @tag (cuke style) functionality (#2573)
With the previous documentation, it was unclear if the passed in tag using the `@` (cucumber style tagging) would be ignored similar to doing `~tag` (for `--tag @tag`), or if it would "ignore" the `@` when building the configuration option (`@tag` changes to `:tag`). Looking at the implementation in `lib/rspec/core/option_parser.rb` confirms that it is the latter, so the wording has been updated to make that more clear.
1 parent 58f3821 commit 7288702

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

features/command_line/tag.feature

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Feature: `--tag` option
1717
`:name => 'bar'`.
1818

1919
To be compatible with the Cucumber syntax, tags can optionally start with an
20-
`@` symbol, which will be ignored.
20+
`@` symbol, which will be ignored as part of the tag, e.g. `--tag @focus` is
21+
treated the same as `--tag focus` and is expanded to `:focus => true`.
2122

2223
Background:
2324
Given a file named "tagged_spec.rb" with:

0 commit comments

Comments
 (0)