mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Associaton -> Association
This commit is contained in:
parent
6581d798e8
commit
a0265b98f1
1 changed files with 2 additions and 2 deletions
|
@ -2163,14 +2163,14 @@ class FormHelperTest < ActionView::TestCase
|
|||
assert_dom_equal expected, output_buffer
|
||||
end
|
||||
|
||||
class FakeAssociatonProxy
|
||||
class FakeAssociationProxy
|
||||
def to_ary
|
||||
[1, 2, 3]
|
||||
end
|
||||
end
|
||||
|
||||
def test_nested_fields_for_with_child_index_option_override_on_a_nested_attributes_collection_association_with_proxy
|
||||
@post.comments = FakeAssociatonProxy.new
|
||||
@post.comments = FakeAssociationProxy.new
|
||||
|
||||
form_for(@post) do |f|
|
||||
concat f.fields_for(:comments, Comment.new(321), :child_index => 'abc') { |cf|
|
||||
|
|
Loading…
Reference in a new issue