Permalink
Browse files

Update test/action_view_extensions/builder_test.rb

add new test, when we define wrapper: false oprion, wrapper must be crashed
  • Loading branch information...
achempion committed Dec 29, 2012
1 parent c439ab3 commit be721c13cff092f35c09358b218c4cd715bb026c
Showing with 10 additions and 0 deletions.
  1. +10 −0 test/action_view_extensions/builder_test.rb
@@ -580,4 +580,14 @@ def with_collection_check_boxes(object, attribute, collection, value_method, tex
end
end
end
+
+ test 'fields don\'t inherites 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]
+ end
+ end
+ end
+ end
end

0 comments on commit be721c1

Please sign in to comment.