Add account after registrar create

This commit is contained in:
Martin Lensment 2015-05-25 13:32:27 +03:00
parent c1211a0ac5
commit f7a4dee1b6
5 changed files with 16 additions and 4 deletions

View file

@ -63,6 +63,10 @@ if @api_user2.blank?
)
end
Registrar.all.each do |x|
x.accounts.where(account_type: Account::CASH, currency: 'EUR').first_or_create!
end
admin1 = {
username: 'user1',
password: 'testtest',