Skip to content

Commit

Permalink
Skip aria attributes test for Rails < 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Oct 7, 2015
1 parent 37d3e21 commit 0adaf41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/form_builder/wrapper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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' } }
Expand Down

0 comments on commit 0adaf41

Please sign in to comment.