Assert we get the correct input type

This commit is contained in:
Seth Ringling 2018-04-24 09:07:20 -07:00
parent be6ab69974
commit 0cb7aa8aeb
No known key found for this signature in database
GPG Key ID: 3F8B3402E1446BE7
1 changed files with 1 additions and 0 deletions

View File

@ -274,6 +274,7 @@ class FormBuilderTest < ActionView::TestCase
test 'builder does not generate url fields for columns that contain only the letters url' do test 'builder does not generate url fields for columns that contain only the letters url' do
with_form_for @user, :hourly with_form_for @user, :hourly
assert_no_select 'form input#user_url.string.url' assert_no_select 'form input#user_url.string.url'
assert_select 'form input#user_hourly.string'
end end
test 'builder allows overriding default input type for text' do test 'builder allows overriding default input type for text' do