Skip to content

Commit

Permalink
Use the current capybara host in page feature spec
Browse files Browse the repository at this point in the history
Somehow this is suddenly necessary
  • Loading branch information
tvdeyen committed Nov 5, 2019
1 parent 76f6a92 commit 4bba83d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/features/page_feature_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@

it "a link to the admin area" do
within('#alchemy_menubar') do
expect(page).to have_selector("li a[href='#{alchemy.admin_dashboard_url}']")
expect(page).to have_selector("li a[href='#{alchemy.admin_dashboard_url(host: Capybara.current_host)}']")
end
end

it "a link to edit the current page" do
within('#alchemy_menubar') do
expect(page).to \
have_selector("li a[href='#{alchemy.edit_admin_page_url(public_page)}']")
have_selector("li a[href='#{alchemy.edit_admin_page_url(public_page, host: Capybara.current_host)}']")
end
end

Expand Down

0 comments on commit 4bba83d

Please sign in to comment.