Refactor prices

#475
This commit is contained in:
Artur Beljajev 2017-04-26 00:51:06 +03:00
parent 5fdc1938af
commit 5a533e09bf
44 changed files with 1027 additions and 375 deletions

View file

@ -0,0 +1,10 @@
FactoryGirl.define do
factory :price, class: Billing::Price do
price Money.from_amount(1)
valid_from Time.zone.parse('05.07.2010')
valid_to Time.zone.parse('05.07.2010')
duration '1 year'
operation_category Billing::Price.operation_categories.first
zone
end
end

View file

@ -1,10 +0,0 @@
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