diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-11-19 11:29:05 -0800 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-11-19 11:29:05 -0800 |
commit | 7d54cccb8474e92454f33c9df975d20a80119fb9 (patch) | |
tree | 2b6d2b3f6f0752c195b926f9c4b0b9ef0f14dd4d /activerecord | |
parent | b03f9ef86a44b190948be0737bf9ab68e30fc112 (diff) | |
download | rails-7d54cccb8474e92454f33c9df975d20a80119fb9.tar.gz rails-7d54cccb8474e92454f33c9df975d20a80119fb9.tar.bz2 rails-7d54cccb8474e92454f33c9df975d20a80119fb9.zip |
That last test was incorrect... ☕
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/type/type_map_test.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/activerecord/test/cases/type/type_map_test.rb b/activerecord/test/cases/type/type_map_test.rb index 81ac7394a8..4e32f92dd0 100644 --- a/activerecord/test/cases/type/type_map_test.rb +++ b/activerecord/test/cases/type/type_map_test.rb @@ -124,16 +124,6 @@ module ActiveRecord assert_equal mapping.lookup(3), 'string' assert_kind_of Type::Value, mapping.lookup(4) end - - def test_aliases_are_not_improperly_cached - mapping = HashLookupTypeMap.new - - mapping.register_type("foo") { |*args| args.join("-") } - mapping.alias_type("bar", "foo") - - assert_equal "bar-1-2-3", mapping.lookup("bar", 1, 2, 3) - assert_equal "foo-1-2-3", mapping.lookup("foo", 1, 2, 3) - end end end end |