mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Fix/Remove tests that don't reflect new Registrant Contact viewing behaviour
This commit is contained in:
parent
f39fb1dc8b
commit
e9738330dc
2 changed files with 2 additions and 18 deletions
|
@ -24,18 +24,10 @@ class RegistrantAreaContactDetailsTest < ApplicationSystemTestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_registrant_user_cannot_access_contact_when_given_domain_belongs_to_another_user
|
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)
|
visit registrant_domain_contact_url(domains(:metro), @contact)
|
||||||
assert_response :not_found
|
assert_response :not_found
|
||||||
assert_no_text 'Name John'
|
assert_no_text 'Name John'
|
||||||
end
|
end
|
||||||
end
|
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
|
|
||||||
|
|
|
@ -141,14 +141,6 @@ class RegistrantAreaContactUpdateTest < ApplicationIntegrationTest
|
||||||
assert_no_field 'Street'
|
assert_no_field 'Street'
|
||||||
end
|
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
|
def test_fail_gracefully
|
||||||
stub_auth_request
|
stub_auth_request
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue