Sha256: ef2492fce12f03dab15919d35be6823798a8ba7f07b298c0f9f79bf8c6878d7a

Contents?: true

Size: 491 Bytes

Versions: 4

Compression:

Stored size: 491 Bytes

Contents

# Require this either in your Gemfile or in your minitest configuration.
# Examples:
#
#   # Gemfile
#   group :test do
#     gem 'minitest'
#     gem 'fakeredis', :require => 'fakeredis/minitest'
#   end
#
#   # test/test_helper.rb (or test/minitest_config.rb)
#   require 'fakeredis/minitest'

require 'fakeredis'

module FakeRedis
  module Minitest
    def setup
      super
      Redis::Connection::Memory.reset_all_databases
    end

    ::Minitest::Test.send(:include, self)
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
fakeredis-0.7.0 lib/fakeredis/minitest.rb
kuende-fakeredis-0.10.0 lib/fakeredis/minitest.rb
fakeredis-0.6.0 lib/fakeredis/minitest.rb
kuende-fakeredis-0.6.0 lib/fakeredis/minitest.rb