Skip to content

Commit

Permalink
amend test for handled exception
Browse files Browse the repository at this point in the history
  • Loading branch information
olliethomas committed Jul 22, 2024
1 parent 9bb7034 commit 3741dbf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/integration/old_map_redirects_test.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
require "test_helper"
require "capybara/rails"

class OldMapRedirectsTest < ActionDispatch::IntegrationTest
test "labelling group redirects" do
get labelling_group_url(labelling_groups(:one))
assert_redirected_to 'http://www.example.com/#1C1ehCwcgSpaBS1eTSDm74sSBsfcEgwjoPbjSaArj'

get labelling_group_url(labelling_groups(:two))
page.driver.browser.switch_to.alert.accept # This accepts the alert
assert_redirected_to 'http://www.example.com/' # Should redirect to root_url on failure
end
Expand Down

0 comments on commit 3741dbf

Please sign in to comment.