Skip to content

Commit

Permalink
Update for rubocop-rspec 1.40
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Jun 14, 2020
1 parent 33a46da commit 8440bd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/rspec/shared_spec_matchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -840,10 +840,10 @@ def to_s
end

it 'gives proper description when :visible option passed' do
expect(have_table('Lovely table', visible: true).description).to eq('have visible table "Lovely table"') # _rubocop:disable Capybara/VisibilityMatcher
expect(have_table('Lovely table', visible: true).description).to eq('have visible table "Lovely table"') # rubocop:disable Capybara/VisibilityMatcher
expect(have_table('Lovely table', visible: :hidden).description).to eq('have non-visible table "Lovely table"')
expect(have_table('Lovely table', visible: :all).description).to eq('have table "Lovely table"')
expect(have_table('Lovely table', visible: false).description).to eq('have table "Lovely table"') # _rubocop:disable Capybara/VisibilityMatcher
expect(have_table('Lovely table', visible: false).description).to eq('have table "Lovely table"') # rubocop:disable Capybara/VisibilityMatcher
end

it 'passes if there is such a table' do
Expand Down

0 comments on commit 8440bd2

Please sign in to comment.