mirror of
https://github.com/heartcombo/simple_form.git
synced 2022-11-09 12:19:26 -05:00
parent
d189adf149
commit
61c83508bf
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue