From e9738330dc9990ae389db32ea8cb6954421df73e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Erik=20=C3=95unapuu?= Date: Fri, 22 May 2020 12:34:28 +0300 Subject: [PATCH] Fix/Remove tests that don't reflect new Registrant Contact viewing behaviour --- test/system/registrant_area/contacts/details_test.rb | 12 ++---------- test/system/registrant_area/contacts/update_test.rb | 8 -------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/test/system/registrant_area/contacts/details_test.rb b/test/system/registrant_area/contacts/details_test.rb index 8152939a5..bf96046a6 100644 --- a/test/system/registrant_area/contacts/details_test.rb +++ b/test/system/registrant_area/contacts/details_test.rb @@ -24,18 +24,10 @@ class RegistrantAreaContactDetailsTest < ApplicationSystemTestCase end def test_registrant_user_cannot_access_contact_when_given_domain_belongs_to_another_user - suppress(ActionView::Template::Error) do + suppress(ActiveRecord::RecordNotFound) do visit registrant_domain_contact_url(domains(:metro), @contact) assert_response :not_found assert_no_text 'Name John' end end - - def test_unmanaged_contact_cannot_be_accessed - @contact.update!(ident: '12345') - - assert_raises ActiveRecord::RecordNotFound do - visit registrant_domain_contact_url(@domain, @contact) - end - end -end \ No newline at end of file +end diff --git a/test/system/registrant_area/contacts/update_test.rb b/test/system/registrant_area/contacts/update_test.rb index 95c4ad5c9..07115579b 100644 --- a/test/system/registrant_area/contacts/update_test.rb +++ b/test/system/registrant_area/contacts/update_test.rb @@ -141,14 +141,6 @@ class RegistrantAreaContactUpdateTest < ApplicationIntegrationTest assert_no_field 'Street' end - def test_unmanaged_contact_cannot_be_updated - @contact.update!(ident: '12345') - - assert_raises ActiveRecord::RecordNotFound do - visit registrant_domain_contact_url(@domain, @contact) - end - end - def test_fail_gracefully stub_auth_request