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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user