diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-09-24 11:28:28 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-09-24 11:28:28 -0700 |
commit | b93d09dbc59b3b85e7208cd57c92be9d86fd51df (patch) | |
tree | 160715adb7dcdb53021c5f62e4529042b6b4dc14 /activerecord/test | |
parent | bb9554ad62a3f37738ee7ad99dbbb9a37784c343 (diff) | |
download | rails-b93d09dbc59b3b85e7208cd57c92be9d86fd51df.tar.gz rails-b93d09dbc59b3b85e7208cd57c92be9d86fd51df.tar.bz2 rails-b93d09dbc59b3b85e7208cd57c92be9d86fd51df.zip |
push preloaded test up to the factory method so we can eliminate
conditionals from the individual preloaded classes
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/associations/has_many_through_associations_test.rb | 1 |
1 files changed, 0 insertions, 1 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 29f6166b00..c0e80c5fe9 100644 --- a/activerecord/test/cases/associations/has_many_through_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_through_associations_test.rb @@ -46,7 +46,6 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase CurrentMembership.create! club: club, member: member2 club1 = Club.includes(:members).find_by_id club.id - left, right = club1.members.map(&:id) assert_equal [member1, member2].sort_by(&:id), club1.members.sort_by(&:id) end |