Skip to content

Commit

Permalink
Remove the maxlength related test cases for future implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Jan 16, 2015
1 parent 3bed657 commit ccc70e6
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions test/action_view/helpers/form_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,6 @@ class WaiableFormBuilderTest < ActionView::TestCase
end
end

test "testing text_field with maxlength attribute" do
expect = '<input type="text" id="person_name" name="person[name]" aria-labelledby="label_person_name" maxlength="20" aria-describedby="person_name_description"/>
<p id="person_name_description" class="hidden">Maximum 20 character is required.</p>'


form_buffer = form_for :person, url: "dummy" do |f|
actual = f.text_field :name, :maxlength => "20"
assert_match(expect, actual)
end
end

test "testing email_field with aria-labelledby attribute" do
expect = 'aria-labelledby="label_person_email"'

Expand Down Expand Up @@ -93,17 +82,6 @@ class WaiableFormBuilderTest < ActionView::TestCase
end
end

test "testing text_area with maxlength attribute" do
expect = '<textarea id="person_address" name="person[address]" aria-labelledby="label_person_address" maxlength="50" aria-describedby="person_address_description">
</textarea>
<p id="person_address_description" class="hidden">Maximum 50 character is required.</p>'

form_buffer = form_for :person, url: "dummy" do |f|
actual = f.text_area :address
assert_match(expect, actual)
end
end

test "testing radio_button with aria-labelledby attribute" do
expect = 'aria-labelledby="label_person_gender"'

Expand Down

0 comments on commit ccc70e6

Please sign in to comment.