mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
parent
596cb8f55d
commit
a1bdfa8df4
3 changed files with 13 additions and 1 deletions
|
@ -8,5 +8,11 @@ FactoryGirl.define do
|
|||
factory :api_user_epp do
|
||||
roles %w(epp static_registrant)
|
||||
end
|
||||
|
||||
factory :api_user_with_unlimited_balance do
|
||||
after :build do |api_user|
|
||||
api_user.registrar = create(:registrar_with_unlimited_balance)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -9,5 +9,11 @@ FactoryGirl.define do
|
|||
zip 'test'
|
||||
email 'test@test.com'
|
||||
country_code 'EE'
|
||||
|
||||
factory :registrar_with_unlimited_balance do
|
||||
after :create do |registrar|
|
||||
create(:account, registrar: registrar, balance: 1_000_000)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue