mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 10:19:45 +02:00
11 lines
226 B
Ruby
11 lines
226 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
|