Closed franzliedke closed 6 months ago
I get an offense when using not_to:
not_to
spec/system/some_spec.rb:229:24: C: [Correctable] Capybara/NegationMatcher: Use expect(...).to have_no_css. expect(page).not_to have_css(".some-class") ^^^^^^^^^^^^^^^
But not when the same code uses to_not. I guess the code assumes the default config for the NotToNot cop, but that isn't the case everywhere. 🤓
to_not
NotToNot
I get an offense when using
not_to
:But not when the same code uses
to_not
. I guess the code assumes the default config for theNotToNot
cop, but that isn't the case everywhere. 🤓