diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2019-03-12 22:52:28 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2019-03-12 22:52:28 +0100 |
commit | 49676e40547b8dcbd38aa927cfd7995957504493 (patch) | |
tree | 5d64f0a1f77e5ec00c9b5dbe042666fcf051727a /activerecord/test | |
parent | f45084c746a79cee3ff6c08fc4e42be15cac2bba (diff) | |
parent | 65f2eeaaf5774f0891fff700f4defb0b90a05789 (diff) | |
download | rails-49676e40547b8dcbd38aa927cfd7995957504493.tar.gz rails-49676e40547b8dcbd38aa927cfd7995957504493.tar.bz2 rails-49676e40547b8dcbd38aa927cfd7995957504493.zip |
Merge branch 'test-remove-marshal-support-from-schema-cache'
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/connection_adapters/schema_cache_test.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/activerecord/test/cases/connection_adapters/schema_cache_test.rb b/activerecord/test/cases/connection_adapters/schema_cache_test.rb index 727cab77f5..79067c0f8a 100644 --- a/activerecord/test/cases/connection_adapters/schema_cache_test.rb +++ b/activerecord/test/cases/connection_adapters/schema_cache_test.rb @@ -66,22 +66,6 @@ module ActiveRecord assert_equal 0, @cache.size end - def test_dump_and_load - @cache.columns("posts") - @cache.columns_hash("posts") - @cache.data_sources("posts") - @cache.primary_keys("posts") - - @cache = Marshal.load(Marshal.dump(@cache)) - - assert_no_queries do - assert_equal 12, @cache.columns("posts").size - assert_equal 12, @cache.columns_hash("posts").size - assert @cache.data_sources("posts") - assert_equal "id", @cache.primary_keys("posts") - end - end - def test_data_source_exist assert @cache.data_source_exists?("posts") assert_not @cache.data_source_exists?("foo") |