Revert "Registry 663"

This commit is contained in:
Timo Võhmar 2018-02-01 16:15:45 +02:00 committed by GitHub
parent 7ed42b6e82
commit 1690f49575
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 165 additions and 308 deletions

View file

@ -1,8 +0,0 @@
first:
ident: 1234
ident_country_code: US
associated_businesses:
- 1234
retrieved_on: 2010-07-05 10:30
created_at: 2010-07-05 10:30
updated_at: 2010-07-05 10:30

View file

@ -1,20 +0,0 @@
john:
name: John
ident: 1234
ident_type: priv
ident_country_code: US
registrar: acme
jane:
name: Jane
ident: 1234
ident_type: priv
ident_country_code: US
registrar: acme
acme_ltd:
name: Acme Ltd.
ident: 1234
ident_type: org
registrar: acme
ident_country_code: US

View file

@ -1,4 +0,0 @@
two_jane:
domain: two
contact: jane
type: AdminDomainContact

View file

@ -1,14 +0,0 @@
one:
name: one.test
registrar: valid
registrant: john
two:
name: two.test
registrar: valid
registrant: john
three:
name: three.test
registrar: valid
registrant: acme_ltd

View file

@ -14,7 +14,3 @@ admin:
country_code: US
roles:
- admin
registrant:
type: RegistrantUser
registrant_ident: US-1234

View file

@ -1,25 +0,0 @@
require 'test_helper'
class DomainsTest < ActionDispatch::IntegrationTest
def setup
login_as users(:registrant)
Setting.days_to_keep_business_registry_cache = 1
travel_to Time.zone.parse('2010-07-05')
end
def test_shows_domains_where_current_user_is_registrant
visit registrant_domains_url
assert_text 'one.test'
end
def test_shows_domains_where_current_user_is_contact_person
visit registrant_domains_url
assert_text 'two.test'
end
def test_shows_domains_where_current_user_has_associated_organizations
visit registrant_domains_url
assert_text 'three.test'
end
end