Skip to content

Commit

Permalink
Add spec to test for disabled hidden field with disabled checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
simmerz committed Feb 1, 2011
1 parent 44a9cc3 commit 91d5292
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/inputs/check_boxes_input_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@

it "should have one item disabled; the specified one" do
output_buffer.concat(@form) if Formtastic::Util.rails3?
output_buffer.should have_tag("form li fieldset ol li input[@type='hidden'][@disabled='disabled']", :count => 1)
output_buffer.should have_tag("form li fieldset ol li label input[@disabled='disabled']", :count => 1)
output_buffer.should have_tag("form li fieldset ol li label[@for='post_author_ids_#{@fred.id}']", /fred/i)
output_buffer.should have_tag("form li fieldset ol li label input[@disabled='disabled'][@value='#{@fred.id}']")
Expand Down

0 comments on commit 91d5292

Please sign in to comment.