Sha256: d5be63c07fb0dd8650fdce2651f4c6bf20d892174ac26c576d09a24d8488beb9

Contents?: true

Size: 407 Bytes

Versions: 3

Compression:

Stored size: 407 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
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fakeredis-0.5.0 lib/fakeredis/rspec.rb
fakeredis-0.4.3 lib/fakeredis/rspec.rb
fakeredis-0.4.2 lib/fakeredis/rspec.rb