mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Fix valid_to #2741
This commit is contained in:
parent
1a10b1400b
commit
0ea07de2d1
5 changed files with 23 additions and 2 deletions
|
@ -160,6 +160,17 @@ describe Pricelist do
|
|||
|
||||
Pricelist.pricelist_for('ee', 'create', '1year').price.amount.should == 1.10
|
||||
|
||||
Fabricate.create(:pricelist, {
|
||||
category: 'ee',
|
||||
operation_category: 'create',
|
||||
duration: '1year',
|
||||
price: 2.10,
|
||||
valid_from: Time.zone.now.to_date,
|
||||
valid_to: Time.zone.now.to_date
|
||||
})
|
||||
|
||||
Pricelist.pricelist_for('ee', 'create', '1year').price.amount.should == 2.10
|
||||
|
||||
Fabricate.create(:pricelist, {
|
||||
category: 'ee',
|
||||
operation_category: 'create',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue