Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add spec to test for disabled hidden field with disabled checkbox

  • Loading branch information...
commit 91d5292fddd672e3aea3dbce21854bac82e5365b 1 parent 44a9cc3
Tom Simnett authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  spec/inputs/check_boxes_input_spec.rb
View
1  spec/inputs/check_boxes_input_spec.rb
@@ -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}']")
Please sign in to comment.
Something went wrong with that request. Please try again.