Sha256: 999a049426e432d9a115110e08fd73ab55e58e5cdb92c09423ad18a131307c0f

Contents?: true

Size: 803 Bytes

Versions: 1

Compression:

Stored size: 803 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 => Rails.root.join('tmp', 'xstub.cache')
end

After do
  CrossStub.clear
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cross-stub-0.2.4 lib/generators/cross_stub/templates/features/support/cross-stub.rb