Merge branch 'add-rspec-factories' into registry-260

This commit is contained in:
Artur Beljajev 2016-12-18 15:57:32 +02:00
commit 232f559576
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