Expect pagination url links to contain full path including domain
This commit is contained in:
@@ -38,7 +38,7 @@ feature 'Proposals' do
|
||||
|
||||
within("ul.pagination") do
|
||||
expect(page).to have_content("1")
|
||||
expect(page).to have_content("2")
|
||||
expect(page).to have_link('2', href: 'http://www.example.com/proposals?page=2')
|
||||
expect(page).to_not have_content("3")
|
||||
click_link "Next", exact: false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user