Sha256: 7194a75dff5c38a5b2d4d2828e81ebb8c8034bdef60ccaca73b16066025825d8
Contents?: true
Size: 452 Bytes
Versions: 1
Compression:
Stored size: 452 Bytes
Contents
require 'assert/factory' require 'hella-redis' module Factory extend Assert::Factory def self.config(args = nil) HellaRedis::Config.new(self.config_args(args)) end def self.config_args(args = nil) { :timeout => Factory.integer, :size => Factory.integer(5), :redis_ns => "hella-redis-test-#{Factory.string}", :url => 'redis://localhost:6379/0', :driver => 'ruby' }.merge(args || {}) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hella-redis-0.4.0 | test/support/factory.rb |