Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…many :through with :conditions, with a belongs_to as the source reflection
  • Loading branch information...
commit 4e13625818579551c01640cb405a8c22a3bd0e68 1 parent ff7bde6
@jonleighton jonleighton authored tenderlove committed
View
4 activerecord/test/cases/associations/has_many_through_associations_test.rb
@@ -529,4 +529,8 @@ def test_select_chosen_fields_only
author = authors(:david)
assert_equal ['body'], author.comments.select('comments.body').first.attributes.keys
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
Please sign in to comment.
Something went wrong with that request. Please try again.