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

@ -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'