Skip to content

Commit

Permalink
Merge pull request #120 from boris-petrov/fix-example
Browse files Browse the repository at this point in the history
Fix example code in the `SpecificMatcher` cop
  • Loading branch information
ydah authored Jun 3, 2024
2 parents 05819a3 + dd13347 commit 0593c65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/cops_capybara.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ expect(page).to have_button
expect(page).to have_no_link('foo', class: 'cls', href: 'http://example.com')
expect(page).to have_table(class: 'cls')
expect(page).to have_select
expect(page).to have_field('foo')
expect(page).to have_field(with: 'foo')
----
=== References
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/capybara/specific_matcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module Capybara
# expect(page).to have_no_link('foo', class: 'cls', href: 'http://example.com')
# expect(page).to have_table(class: 'cls')
# expect(page).to have_select
# expect(page).to have_field('foo')
# expect(page).to have_field(with: 'foo')
#
class SpecificMatcher < ::RuboCop::Cop::Base
MSG = 'Prefer `%<good_matcher>s` over `%<bad_matcher>s`.'
Expand Down

0 comments on commit 0593c65

Please sign in to comment.