Add account and pricelist factories

This commit is contained in:
Artur Beljajev 2016-12-18 15:56:56 +02:00
parent afac0c571e
commit cbedd33db3
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,7 @@
FactoryGirl.define do
factory :account do
account_type Account::CASH
balance 1
currency 'EUR'
end
end

View file

@ -0,0 +1,10 @@
FactoryGirl.define do
factory :pricelist do
valid_from Time.zone.parse('05.07.2010')
valid_to Time.zone.parse('05.07.2010')
category 'com'
duration '1year'
operation_category 'create'
price 1.to_money
end
end