Skip aria attributes test for Rails < 4.2

This commit is contained in:
Rafael Mendonça França 2015-10-07 20:46:47 -03:00
parent c62770c5ce
commit 71ae2cbea4
1 changed files with 2 additions and 0 deletions

View File

@ -263,6 +263,8 @@ class WrapperTest < ActionView::TestCase
end
test "input with aria attributes will merge with wrapper_options' aria" do
skip unless ActionPack::VERSION::MAJOR == '4' && ActionPack::VERSION::MINOR >= '2'
swap_wrapper :default, custom_wrapper_with_input_aria_modal do
with_concat_form_for @user do |f|
concat f.input :name, input_html: { aria: { modal: 'another-aria', target: 'merge-aria' } }