aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2015-10-29 09:43:12 -0600
committerSean Griffin <sean@seantheprogrammer.com>2015-10-29 09:43:12 -0600
commit90dbfdcba2110eb40f5c0c3a1d4c1d6ed46f5ab5 (patch)
treeabf34182a6d23c14a258a445100acdbc5d620487 /activerecord/test/cases/associations
parent6dc6a0b17cfaf7cb6aa2b1c163b6ca141b538a8e (diff)
parentb8832c1b5454c0ea3deeeefe598d24e887ca574f (diff)
downloadrails-90dbfdcba2110eb40f5c0c3a1d4c1d6ed46f5ab5.tar.gz
rails-90dbfdcba2110eb40f5c0c3a1d4c1d6ed46f5ab5.tar.bz2
rails-90dbfdcba2110eb40f5c0c3a1d4c1d6ed46f5ab5.zip
Merge pull request #19501 from ccutrer/dry_sti_subclass_finding2
DRY up STI subclass logic
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r--activerecord/test/cases/associations/has_many_through_associations_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations/has_many_through_associations_test.rb b/activerecord/test/cases/associations/has_many_through_associations_test.rb
index cf730e4fe7..226ecf5447 100644
--- a/activerecord/test/cases/associations/has_many_through_associations_test.rb
+++ b/activerecord/test/cases/associations/has_many_through_associations_test.rb
@@ -1111,10 +1111,10 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase
def test_has_many_through_with_default_scope_on_the_target
person = people(:michael)
- assert_equal [posts(:thinking)], person.first_posts
+ assert_equal [posts(:thinking).id], person.first_posts.map(&:id)
readers(:michael_authorless).update(first_post_id: 1)
- assert_equal [posts(:thinking)], person.reload.first_posts
+ assert_equal [posts(:thinking).id], person.reload.first_posts.map(&:id)
end
def test_has_many_through_with_includes_in_through_association_scope