mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 14:14:49 +02:00
Eliminate mystery guest
This commit is contained in:
parent
90ed23f64d
commit
c2e73e00e1
2 changed files with 8 additions and 13 deletions
12
test/fixtures/registrars.yml
vendored
12
test/fixtures/registrars.yml
vendored
|
@ -31,15 +31,3 @@ not_in_use:
|
||||||
country_code: US
|
country_code: US
|
||||||
accounting_customer_code: any
|
accounting_customer_code: any
|
||||||
language: en
|
language: en
|
||||||
|
|
||||||
complete:
|
|
||||||
name: Complete Names
|
|
||||||
reg_no: 123456
|
|
||||||
code: completenames
|
|
||||||
email: completenames@example.com
|
|
||||||
country_code: US
|
|
||||||
accounting_customer_code: US0001
|
|
||||||
language: en
|
|
||||||
vat_no: US12345
|
|
||||||
vat_rate: 0.05
|
|
||||||
billing_email: billing@bestnames.test
|
|
||||||
|
|
|
@ -5,10 +5,17 @@ class AdminAreaRegistrarDetailsTest < ApplicationSystemTestCase
|
||||||
|
|
||||||
setup do
|
setup do
|
||||||
sign_in users(:admin)
|
sign_in users(:admin)
|
||||||
@registrar = registrars(:complete)
|
@registrar = registrars(:bestnames)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_registrar_details
|
def test_registrar_details
|
||||||
|
@registrar.accounting_customer_code = 'US0001'
|
||||||
|
@registrar.vat_no = 'US12345'
|
||||||
|
@registrar.vat_rate = 5
|
||||||
|
@registrar.language = 'en'
|
||||||
|
@registrar.billing_email = 'billing@bestnames.test'
|
||||||
|
@registrar.save(validate: false)
|
||||||
|
|
||||||
visit admin_registrar_path(@registrar)
|
visit admin_registrar_path(@registrar)
|
||||||
assert_text 'Accounting customer code US0001'
|
assert_text 'Accounting customer code US0001'
|
||||||
assert_text 'VAT number US12345'
|
assert_text 'VAT number US12345'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue