提交 4e136258 编写于 作者: J Jon Leighton 提交者: Aaron Patterson

Test demonstrating problem with foo.association_ids where it's a has_many...

Test demonstrating problem with foo.association_ids where it's a has_many :through with :conditions, with a belongs_to as the source reflection
上级 ff7bde62
...@@ -529,4 +529,8 @@ def test_select_chosen_fields_only ...@@ -529,4 +529,8 @@ def test_select_chosen_fields_only
author = authors(:david) author = authors(:david)
assert_equal ['body'], author.comments.select('comments.body').first.attributes.keys assert_equal ['body'], author.comments.select('comments.body').first.attributes.keys
end end
def test_get_has_many_through_belongs_to_ids_with_conditions
assert_equal [categories(:general).id], authors(:mary).categories_like_general_ids
end
end end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册