Add registrar_with_zero_balance factory

This commit is contained in:
Artur Beljajev 2017-04-16 17:14:52 +03:00
parent 68bc18cdc9
commit 7fa97ed736

View file

@ -15,5 +15,11 @@ FactoryGirl.define do
create(:account, registrar: registrar, balance: 1_000_000) create(:account, registrar: registrar, balance: 1_000_000)
end end
end end
factory :registrar_with_zero_balance do
after :create do |registrar|
create(:account, registrar: registrar, balance: 0)
end
end
end end
end end