Show registrar's accounting customer code in UI

#343
This commit is contained in:
Artur Beljajev 2017-10-27 11:57:37 +03:00
parent 59e1e18d32
commit 74cb51f2e3
2 changed files with 16 additions and 0 deletions

View file

@ -42,6 +42,9 @@
%dt= Registrar.human_attribute_name :website %dt= Registrar.human_attribute_name :website
%dd= @registrar.website %dd= @registrar.website
%dt= Registrar.human_attribute_name :accounting_customer_code
%dd= @registrar.accounting_customer_code
.col-md-6 .col-md-6
.panel.panel-default .panel.panel-default
.panel-heading .panel-heading

View file

@ -0,0 +1,13 @@
require 'test_helper'
class RegistrarsControllerTest < ActionDispatch::IntegrationTest
def setup
login_as create(:admin_user)
end
def test_accounting_customer_code
registrar = create(:registrar, accounting_customer_code: 'test accounting customer code')
visit admin_registrar_path(registrar)
assert_text 'test accounting customer code'
end
end