1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00

Test aria-required for hidden inputs.

[#780]
This commit is contained in:
Cameron Cundiff 2013-04-07 14:00:58 -04:00
parent d189adf149
commit 61c83508bf

View file

@ -20,10 +20,11 @@ class HiddenInputTest < ActionView::TestCase
assert_no_select 'label'
end
test 'required/optional options should not be generated for hidden inputs' do
test 'required/aria-required/optional options should not be generated for hidden inputs' do
with_input_for @user, :name, :hidden
assert_no_select 'input.required'
assert_no_select 'input[required]'
assert_no_select 'input[aria-required]'
assert_no_select 'input.optional'
assert_select 'input.hidden#user_name'
end