Skip to content

Commit 3ff57d3

Browse files
fixed tests
1 parent 410a91c commit 3ff57d3

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

app/models/contact/company_register.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def org_contact_accept_e_invoice?
5454
end
5555

5656
def is_contact_estonian_org?
57-
org? && country_code == 'EE'
57+
org? && ident_country_code == 'EE'
5858
end
5959

6060
def company_register

test/models/contact/company_register_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
class CompanyRegisterTest < ActiveSupport::TestCase
66
def setup
77
@acme_ltd = contacts(:acme_ltd)
8+
@acme_ltd.update!(ident_country_code: 'EE', ident_type: 'org', ident: '12345678')
9+
810
@john = contacts(:john)
911
@company_register_stub = CompanyRegister::Client.new
1012
end

0 commit comments

Comments
 (0)