Skip to content

Commit

Permalink
cleaning up after myself
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfrench committed Oct 20, 2009
1 parent bcbe370 commit 9afdaa9
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions spec/formtastic_spec.rb
Expand Up @@ -2758,36 +2758,6 @@ def should_be_required(options)
end

end



#it 'should nest the inputs with an _attributes suffix on the association name ' do
#
#
# # renders a post[author_attributes][login]
# semantic_form_for(@new_post) do |post|
# post.semantic_fields_for(:author) do |author|
# concat(author.text_field(:login))
# end
# end
#
# # renders a post[author_attributes][login]
#
# # renders a post[author_attributes][login]
#
#
# # renders a post[author][login]
# semantic_form_for(@new_post) do |post|
# post.inputs :for => @new_post.author do |author|
# concat(author.input(:login))
# end
# end
#
# output_buffer.should have_tag("form input[@name='post[author_attributes][login]']", :count => 4)
# output_buffer.should have_tag("form input[@name='post[author][login]']", :count => 2)
#
#end


it 'should raise an error if :for and block with no argument is given' do
semantic_form_for(@new_post) do |builder|
Expand Down

0 comments on commit 9afdaa9

Please sign in to comment.