Sha256: c6690e61e8f3660a9df3f7e77e1690059a3ee222bc3613f2c6984180e0f5b1f7
Contents?: true
Size: 809 Bytes
Versions: 5
Compression:
Stored size: 809 Bytes
Contents
require 'cross-stub' Before do # ///////////////////////////////////////////////////////////////////////////////// # NOTE: By default, we use file-based cache store for cross-stub. Alternatively, # u may wanna try out the other cache stores. Adding new cache store support is # super easy, w.r.t actual implementation & testing, just drop me a note at # http://github.com/ngty/cross-stub & i'll do it for u, of course FOC lah !! # ///////////////////////////////////////////////////////////////////////////////// #CrossStub.setup :redis => 'localhost:6379/xstub.cache' # requires *redis* gem #CrossStub.setup :memcache => 'localhost:11211/xstub.cache' # requires *memcache-client* gem CrossStub.setup :file => File.join(RAILS_ROOT, 'tmp', 'xstub.cache') end After do CrossStub.clear end
Version data entries
5 entries across 5 versions & 1 rubygems