test/rack/cache/entitystore/redis_test.rb in redis-rack-cache-2.2.0 vs test/rack/cache/entitystore/redis_test.rb in redis-rack-cache-2.2.1

- old
+ new

@@ -89,15 +89,16 @@ cache.id.must_equal("redis://127.0.0.1:6380/0") cache = ::Rack::Cache::EntityStore::Redis.resolve(uri("redis://127.0.0.1/13")).cache cache.id.must_equal("redis://127.0.0.1:6379/13") - # cache = ::Rack::Cache::EntityStore::Redis.resolve(uri("redis://:secret@127.0.0.1")).cache - # cache.id.must_equal("redis://127.0.0.1:6379/0") - # cache.client.password.must_equal('secret') - cache = Rack::Cache::MetaStore::Redis.resolve(uri("redis://127.0.0.1:6380/0/entitystore")).cache cache.to_s.must_equal("Redis Client connected to 127.0.0.1:6380 against DB 0 with namespace entitystore") + + store = ::Rack::Cache::EntityStore::Redis.resolve(uri("redis://127.0.0.1/13"), compress: true) + store.cache.id.must_equal("redis://127.0.0.1:6379/13") + store.options.key?(:compress).must_equal(true) + store.options[:compress].must_equal(true) end it 'responds to all required messages' do %w[read open write exist?].each do |message| @store.must_respond_to message