mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 14:36:22 +02:00
fixed tests
This commit is contained in:
parent
ded3087c50
commit
f5d3a0d9a9
2 changed files with 7 additions and 3 deletions
|
@ -87,8 +87,11 @@ class RegistrantUserTest < ActiveSupport::TestCase
|
|||
company = Company.new('acme', 'ace')
|
||||
|
||||
company_register = Minitest::Mock.new
|
||||
company_register.expect(:representation_rights, [company], [{ citizen_personal_code: '1234',
|
||||
citizen_country_code: 'USA' }])
|
||||
def company_register.representation_rights(citizen_personal_code: '1234', citizen_country_code: 'USA')
|
||||
[Company.new('acme', 'ace')]
|
||||
end
|
||||
# company_register.expect(:representation_rights, [company], [{ citizen_personal_code: '1234',
|
||||
# citizen_country_code: 'USA' }])
|
||||
|
||||
assert_equal [company], @user.companies(company_register)
|
||||
company_register.verify
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue