mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Add registrar_with_zero_balance factory
This commit is contained in:
parent
68bc18cdc9
commit
7fa97ed736
1 changed files with 6 additions and 0 deletions
|
@ -15,5 +15,11 @@ FactoryGirl.define do
|
|||
create(:account, registrar: registrar, balance: 1_000_000)
|
||||
end
|
||||
end
|
||||
|
||||
factory :registrar_with_zero_balance do
|
||||
after :create do |registrar|
|
||||
create(:account, registrar: registrar, balance: 0)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue