Skip to content

Commit

Permalink
Input spec failing in 2.3.x because form was in output_buffer twice...
Browse files Browse the repository at this point in the history
  • Loading branch information
lardawge authored and justinfrench committed Nov 28, 2010
1 parent 79f9f04 commit ef23ca0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions spec/inputs/boolean_input_spec.rb
Expand Up @@ -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)
Expand Down

0 comments on commit ef23ca0

Please sign in to comment.