Sha256: a1d589255025bc1751dd0ba2c060017b16aac6060704f890e95e0f9ce0255c45
Contents?: true
Size: 628 Bytes
Versions: 4
Compression:
Stored size: 628 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' require 'redis-mutex' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
redis-mutex-1.2.3 | spec/spec_helper.rb |
redis-mutex-1.2.2 | spec/spec_helper.rb |
redis-mutex-1.2.1 | spec/spec_helper.rb |
redis-mutex-1.2.0 | spec/spec_helper.rb |