Apply (but don't add) Capybara/SpecificMatcher rule

This rule was added in rubocop-rspec 2.12.0, and we were already
following it most of the time.

However, the rule isn't working correctly in some cases, such as input
selectors, so we aren't enabling it.
This commit is contained in:
Javi Martín
2023-08-29 19:37:57 +02:00
parent c2010f9756
commit f52a86b465
5 changed files with 30 additions and 30 deletions

View File

@@ -35,6 +35,6 @@ describe Admin::Poll::Officers::OfficersComponent, :admin do
it "accepts table options" do
render_inline Admin::Poll::Officers::OfficersComponent.new(officers, class: "my-officers-table")
expect(page).to have_css "table.my-officers-table"
expect(page).to have_table class: "my-officers-table"
end
end