Skip to content

Commit

Permalink
Show registrar's accounting customer code in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Beljajev committed Oct 27, 2017
1 parent 59e1e18 commit 74cb51f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/admin/registrars/show.haml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
%dt= Registrar.human_attribute_name :website
%dd= @registrar.website

%dt= Registrar.human_attribute_name :accounting_customer_code
%dd= @registrar.accounting_customer_code

.col-md-6
.panel.panel-default
.panel-heading
Expand Down
13 changes: 13 additions & 0 deletions test/controllers/admin/registrars/show_test.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 74cb51f

Please sign in to comment.