RSpec/Capybara
RSpec/Capybara/FeatureMethods
Enabled by default | Safe | Supports autocorrection | Version Added | Version Changed |
---|---|---|---|---|
Enabled |
Yes |
Always |
1.17 |
2.0 |
Checks for consistent method usage in feature specs.
By default, the cop disables all Capybara-specific methods that have
the same native RSpec method (e.g. are just aliases). Some teams
however may prefer using some of the Capybara methods (like feature
)
to make it obvious that the test uses Capybara, while still disable
the rest of the methods, like given
(alias for let
), background
(alias for before
), etc. You can configure which of the methods to
be enabled by using the EnabledMethods configuration option.