mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
11 lines
227 B
Ruby
11 lines
227 B
Ruby
RSpec.shared_examples 'money form field' do
|
|
it 'has max length' do
|
|
render
|
|
expect(field[:maxlength]).to eq('255')
|
|
end
|
|
|
|
it 'has money pattern' do
|
|
render
|
|
expect(field[:pattern]).to eq('^[0-9.,]+$')
|
|
end
|
|
end
|