Skip to content

Commit

Permalink
rubocop corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
leefaisonr committed Oct 2, 2023
1 parent bae254b commit 12ca95e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/system/card_image_pagination_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
describe 'GuideCards show page' do
it 'displays and paginates through card images' do
visit '/guide_cards/2'
expect(page.all("div#main-content ul img").count).to eq 10
expect(page.all("div#main-content ul img").last[:src]).to match /fake_image_10.jpg/
expect(page.all('div#main-content ul img').count).to eq 10
expect(page.all('div#main-content ul img').last[:src]).to match(/fake_image_10.jpg/)
expect(page).to have_link('Next', href: '/guide_cards/2?page=2')
click_link('Next')
expect(page.all("div#main-content ul img")[3][:src]).to match /fake_image_14.jpg/
expect(page.all('div#main-content ul img')[3][:src]).to match(/fake_image_14.jpg/)
end
end
end

0 comments on commit 12ca95e

Please sign in to comment.