Sha256: 2a00a5928079f2c2dce22a0e43014d5912c7a54d07e1fde5a6fdd6b377901d8d

Contents?: true

Size: 456 Bytes

Versions: 8

Compression:

Stored size: 456 Bytes

Contents

# Require this either in your Gemfile or in RSpec's
# support scripts. Examples:
#
#   # Gemfile
#   group :test do
#     gem "rspec"
#     gem "fakeredis", :require => "fakeredis/rspec"
#   end
#
#   # spec/support/fakeredis.rb
#   require 'fakeredis/rspec'
#

require 'rspec/core'
require 'fakeredis'

RSpec.configure do |c|

  c.before do    
    Redis::Connection::Memory.reset_all_databases
    Redis::Connection::Memory.reset_all_channels
  end

end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
fakeredis-0.9.2 lib/fakeredis/rspec.rb
fakeredis-0.9.1 lib/fakeredis/rspec.rb
fakeredis-0.9.0 lib/fakeredis/rspec.rb
fakeredis-0.8.0 lib/fakeredis/rspec.rb
fakeredis-0.7.0 lib/fakeredis/rspec.rb
kuende-fakeredis-0.10.0 lib/fakeredis/rspec.rb
fakeredis-0.6.0 lib/fakeredis/rspec.rb
kuende-fakeredis-0.6.0 lib/fakeredis/rspec.rb