mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
parent
9530fd939d
commit
396d095f98
1 changed files with 2 additions and 8 deletions
|
@ -78,14 +78,8 @@ RSpec.describe Billing::Price do
|
|||
expect(price.errors).to_not have_key(:price)
|
||||
end
|
||||
|
||||
it 'accepts period as fraction separator' do
|
||||
price.price = 1.5
|
||||
price.validate
|
||||
expect(price.errors).to_not have_key(:price)
|
||||
end
|
||||
|
||||
it 'accepts comma as fraction separator' do
|
||||
price.price = '1,5'
|
||||
it 'accepts fraction' do
|
||||
price.price = "1#{I18n.t('number.currency.format.separator')}5"
|
||||
price.validate
|
||||
expect(price.errors).to_not have_key(:price)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue