Add price expiration

#522
This commit is contained in:
Artur Beljajev 2017-05-25 19:17:11 +03:00
parent 3741e2d2a3
commit 58ae53b1e6
17 changed files with 264 additions and 13 deletions

View file

@ -6,5 +6,13 @@ FactoryGirl.define do
duration '1 year'
operation_category Billing::Price.operation_categories.first
zone
factory :unexpired_price do
expire_time { Time.zone.now + 1.day }
end
factory :expired_price do
expire_time { Time.zone.now - 1.day }
end
end
end