aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-07-28 07:44:33 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-07-28 07:44:33 -0700
commitf625d325e01051c1f8fd7b70190ac698620507cf (patch)
treefc35c7bfb6008d97f93a4d0c1b48e4cbbe946ac3
parent2a71e9cbd49474215673884fcce3f168481cfcd1 (diff)
parent4cf4ea506def9a3e36cc90a2b0e073cbb8fc43df (diff)
downloadrails-f625d325e01051c1f8fd7b70190ac698620507cf.tar.gz
rails-f625d325e01051c1f8fd7b70190ac698620507cf.tar.bz2
rails-f625d325e01051c1f8fd7b70190ac698620507cf.zip
Merge pull request #11638 from neerajdotname/make_order_independent_association_test
make test not depend on order
-rw-r--r--activerecord/test/cases/associations/has_one_through_associations_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/associations/has_one_through_associations_test.rb b/activerecord/test/cases/associations/has_one_through_associations_test.rb
index 90c557e886..01a4137a5d 100644
--- a/activerecord/test/cases/associations/has_one_through_associations_test.rb
+++ b/activerecord/test/cases/associations/has_one_through_associations_test.rb
@@ -191,6 +191,7 @@ class HasOneThroughAssociationsTest < ActiveRecord::TestCase
end
def test_preloading_has_one_through_on_belongs_to
+ MemberDetail.delete_all
assert_not_nil @member.member_type
@organization = organizations(:nsa)
@member_detail = MemberDetail.new