We are testing if simple_fields_for override the :wrapper options of the
parent
This commit is contained in:
parent
c79dbef7fa
commit
984312087f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue