Sha256: 5af5bf353f6afaec7b2fd7476b53f02636a1a175c03ac3554b011fb6d03fa6be
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 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::QuailsMetaStore.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-on-quails-0.1.0 | actionpack/test/dispatch/rack_cache_test.rb |