Skip to content

Conversation

@thatbudakguy
Copy link
Member

Rubocop had been complaining about all of the new cops, so this
activates them and fixes the suggested changes.

Rubocop had been complaining about all of the new cops, so this
activates them and fixes the suggested changes.
Comment on lines +14 to 15
expect(page).to have_content '10 Meter Contours: Russian River Basin, California'
expect(page).to have_no_link 'SearchWorks'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are because of a new cop that doesn't like capybara negation matchers being used immediately after page load (presumably because they can give a false positive). I added a trivial matcher to check that the page title is correct before attempting a negation matcher.

@cbeer cbeer merged commit d67c968 into main Aug 25, 2025
2 checks passed
@cbeer cbeer deleted the rubocop-fixes branch August 25, 2025 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants