Eliminate mystery guest

This commit is contained in:
Artur Beljajev 2018-10-03 17:22:30 +03:00
parent 90ed23f64d
commit c2e73e00e1
2 changed files with 8 additions and 13 deletions

View file

@ -31,15 +31,3 @@ not_in_use:
country_code: US
accounting_customer_code: any
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

View file

@ -5,10 +5,17 @@ class AdminAreaRegistrarDetailsTest < ApplicationSystemTestCase
setup do
sign_in users(:admin)
@registrar = registrars(:complete)
@registrar = registrars(:bestnames)
end
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)
assert_text 'Accounting customer code US0001'
assert_text 'VAT number US12345'