aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-04-09 19:19:59 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-04-09 19:19:59 -0700
commit82cb4777c148962467b04ee29fb49063462c56d8 (patch)
tree451bcb8377ba1aa70521f954440edafa32ae53bb /activerecord/test
parentc7d009b35e2b6b35352eaeba6290b67e8afffdb1 (diff)
parent213ef567ae2ab92f1e1145cd385da0c5b9534422 (diff)
downloadrails-82cb4777c148962467b04ee29fb49063462c56d8.tar.gz
rails-82cb4777c148962467b04ee29fb49063462c56d8.tar.bz2
rails-82cb4777c148962467b04ee29fb49063462c56d8.zip
Merge pull request #14675 from laurocaetano/make_reflection_caches_works_with_string_keys
Make reflection and aggregate_reflection caches work with string keys.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/reflection_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/reflection_test.rb b/activerecord/test/cases/reflection_test.rb
index ad77472333..fed199f6e9 100644
--- a/activerecord/test/cases/reflection_test.rb
+++ b/activerecord/test/cases/reflection_test.rb
@@ -192,7 +192,7 @@ class ReflectionTest < ActiveRecord::TestCase
end
def test_reflection_should_not_raise_error_when_compared_to_other_object
- assert_nothing_raised { Firm.reflections[:clients] == Object.new }
+ assert_nothing_raised { Firm.reflections['clients'] == Object.new }
end
def test_has_many_through_reflection