From 3ce9e43bc343283ac738efb5b9b11672cb6a78b3 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Mon, 11 Nov 2013 19:49:22 +0900 Subject: Avoid sorting an Array including objects from different Classes addresses "ArgumentError: comparison of VerySpecialComment with SpecialComment failed" in ActiveRecord::DelegationRelationTest#test_#sort!_delegation_is_deprecated --- activerecord/test/cases/relation/delegation_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test/cases') diff --git a/activerecord/test/cases/relation/delegation_test.rb b/activerecord/test/cases/relation/delegation_test.rb index 1b60c97b51..7f99b6841f 100644 --- a/activerecord/test/cases/relation/delegation_test.rb +++ b/activerecord/test/cases/relation/delegation_test.rb @@ -64,7 +64,7 @@ module ActiveRecord fixtures :comments def target - Comment.where.not(body: nil) + Comment.where(body: 'Normal type') end [:map, :collect].each do |method| -- cgit v1.2.3