Created
February 1, 2011 17:32
-
-
Save simmerz/806227 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/spec/inputs/check_boxes_input_spec.rb b/spec/inputs/check_boxes_input_spec.rb | |
index 0a886a6..02f3882 100644 | |
--- a/spec/inputs/check_boxes_input_spec.rb | |
+++ b/spec/inputs/check_boxes_input_spec.rb | |
@@ -231,6 +231,7 @@ describe 'check_boxes input' do | |
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}']") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment