mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Pricelist test #2741g
This commit is contained in:
parent
1b1794887a
commit
087ab8cfec
1 changed files with 11 additions and 0 deletions
|
@ -159,5 +159,16 @@ describe Pricelist do
|
|||
})
|
||||
|
||||
Pricelist.price_for('ee', 'create', '1year').should == 1.10
|
||||
|
||||
Fabricate.create(:pricelist, {
|
||||
category: 'ee',
|
||||
operation_category: 'create',
|
||||
duration: '2years',
|
||||
price: 1.20,
|
||||
valid_from: Time.zone.parse('2015-07-01'),
|
||||
valid_to: Time.zone.parse('2999-01-01')
|
||||
})
|
||||
|
||||
Pricelist.price_for('ee', 'create', '2years').should == 1.20
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue