Merge branch 'add-money-form-field' into registry-475

This commit is contained in:
Artur Beljajev 2017-04-22 18:40:28 +03:00
commit 044c0d1369
3 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,11 @@
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