While these cops were previously implemented in the RuboCop RSpec gem and did not cause any issues, they may not be appropriate for RuboCop Capybara, which is not limited to RSpec extensions.
Therefore, it might be a good to create a separate Capybara/RSpec department to handle these RSpec-specific extensions.
The
Capybara/SpecificMatcher
,Capybara/NegationMatcher
, andCapybara/VisibilityMatcher
cops depend on methods from theCapybara::RSpecMatchers
class.https://www.rubydoc.info/gems/capybara/Capybara/RSpecMatchers
While these cops were previously implemented in the RuboCop RSpec gem and did not cause any issues, they may not be appropriate for RuboCop Capybara, which is not limited to RSpec extensions. Therefore, it might be a good to create a separate
Capybara/RSpec
department to handle these RSpec-specific extensions.