Add "registrar_with_unlimited_balance" factory

#248
This commit is contained in:
Artur Beljajev 2017-01-08 21:45:47 +02:00
parent 596cb8f55d
commit a1bdfa8df4
3 changed files with 13 additions and 1 deletions

View file

@ -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