Permalink
Browse files

We are testing if simple_fields_for override the :wrapper options of the

parent
  • Loading branch information...
1 parent c79dbef commit 984312087ffb5d9873573f091b3efdd580cedc6c @rafaelfranca rafaelfranca committed Jan 2, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/action_view_extensions/builder_test.rb
@@ -581,11 +581,11 @@ def with_collection_check_boxes(object, attribute, collection, value_method, tex
end
end
- test "fields don't inherites wrapper option from the parent form" do
+ test "fields overrides wrapper option from the parent form" do
swap_wrapper :another do
simple_form_for(:user, :wrapper => :another) do |f|
f.simple_fields_for(:company, :wrapper => false) do |company|
- assert_not_equal :another, company.options[:wrapper]
+ assert_equal false, company.options[:wrapper]
end
end
end

0 comments on commit 9843120

Please sign in to comment.