Sha256: 56a2f78c66e237a1f0e822bdfe7c41092c4ffd9d9ba76ea53ae51a9d46ad3fb4
Contents?: true
Size: 929 Bytes
Versions: 5
Compression:
Stored size: 929 Bytes
Contents
if ENV['RAILS_ENV'] == 'cucumber' class ActionController::Dispatcher def refresh_stubs # ///////////////////////////////////////////////////////////////////////////////// # 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.refresh :redis => 'localhost:6379/xstub.cache' # requires *redis* gem #CrossStub.refresh :memcache => 'localhost:11211/xstub.cache' # requires *memcache-client* gem CrossStub.refresh :file => File.join(RAILS_ROOT, 'tmp', 'xstub.cache') end before_dispatch :refresh_stubs end end
Version data entries
5 entries across 5 versions & 1 rubygems