Sha256: 31edb73f9e7af7183fc133ebf4afb67adae138b95230507939d2f4e588738ab4
Contents?: true
Size: 523 Bytes
Versions: 47
Compression:
Stored size: 523 Bytes
Contents
# frozen_string_literal: true require "abstract_unit" require "action_dispatch/http/rack_cache" class RackCacheMetaStoreTest < ActiveSupport::TestCase class ReadWriteHash < ::Hash alias :read :[] alias :write :[]= end setup do @store = ActionDispatch::RailsMetaStore.new(ReadWriteHash.new) end test "stuff is deep duped" do @store.write(:foo, bar: :original) hash = @store.read(:foo) hash[:bar] = :changed hash = @store.read(:foo) assert_equal :original, hash[:bar] end end
Version data entries
47 entries across 47 versions & 1 rubygems