Sha256: 8987cd18dfaeb63bc7421a2275e9b168b671668b863636366c28c33df8708855

Contents?: true

Size: 385 Bytes

Versions: 5

Compression:

Stored size: 385 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

require 'rspec'
require 'redis-mutex'

RSpec.configure do |config|
  # Use database 15 for testing so we don't accidentally step on you real data.
  Redis::Classy.db = Redis.new(:db => 15)
  unless Redis::Classy.keys.empty?
    puts '[ERROR]: Redis database 15 not empty! If you are sure, run "rake flushdb" beforehand.'
    exit!
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
redis-mutex-3.0.0 spec/spec_helper.rb
redis-mutex-2.1.1 spec/spec_helper.rb
redis-mutex-2.1.0 spec/spec_helper.rb
redis-mutex-2.0.0 spec/spec_helper.rb
redis-mutex-1.3.5 spec/spec_helper.rb