Sha256: eeaff05ca67088ad0e3de106c26578ac99428eff2252e50147ed48876730e323
Contents?: true
Size: 730 Bytes
Versions: 2
Compression:
Stored size: 730 Bytes
Contents
require 'set' require 'mock_redis/assertions' require 'mock_redis/database' require 'mock_redis/distributed' require 'mock_redis/expire_wrapper' require 'mock_redis/multi_db_wrapper' require 'mock_redis/transaction_wrapper' require 'mock_redis/undef_redis_methods' class MockRedis include UndefRedisMethods def initialize(*args) @db = TransactionWrapper.new( ExpireWrapper.new( MultiDbWrapper.new( Database.new(*args)))) end def respond_to?(method, include_private=false) super || @db.respond_to?(method, include_private) end def method_missing(method, *args, &block) @db.send(method, *args, &block) end def initialize_copy(source) super @db = @db.clone end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mock_redis-0.4.1 | lib/mock_redis.rb |
mock_redis-0.4.0 | lib/mock_redis.rb |