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

parent
This commit is contained in:
Rafael Mendonça França 2013-01-02 10:21:39 -03:00
parent c79dbef7fa
commit 984312087f
1 changed files with 2 additions and 2 deletions

View File

@ -581,11 +581,11 @@ class BuilderTest < ActionView::TestCase
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