Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Input spec failing in 2.3.x because form was in output_buffer twice...

  • Loading branch information...
commit ef23ca07343dda96a4e3763e0f9bbb74e522701b 1 parent 79f9f04
@lardawge lardawge authored committed
Showing with 1 addition and 5 deletions.
  1. +1 −5 spec/inputs/boolean_input_spec.rb
View
6 spec/inputs/boolean_input_spec.rb
@@ -38,11 +38,7 @@
end
it 'should generate a checked input if object.method returns true' do
- form = semantic_form_for(@new_post) do |builder|
- concat(builder.input(:allow_comments, :as => :boolean))
- end
-
- output_buffer.concat(form) if Formtastic::Util.rails3?
+ output_buffer.concat(@form) if Formtastic::Util.rails3?
output_buffer.should have_tag('form li label input[@checked="checked"]')
output_buffer.should have_tag('form li input[@name="post[allow_comments]"]', :count => 2)
output_buffer.should have_tag('form li input#post_allow_comments', :count => 1)
Please sign in to comment.
Something went wrong with that request. Please try again.