Merge branch 'rspec' into registry-430

This commit is contained in:
Artur Beljajev 2017-04-16 17:15:04 +03:00
commit 6c3a96b2ec

View file

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