Sha256: f8c6073ce1aa7814c90a9fe5d7d5109d82d26912351b60695c026033813915a3

Contents?: true

Size: 350 Bytes

Versions: 27

Compression:

Stored size: 350 Bytes

Contents

require 'rspec'
require 'redis_failover'

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

class NullObject
  def method_missing(method, *args, &block)
    yield if block_given?
    self
  end
end

module RedisFailover
  Util.logger = NullObject.new
end

def ZK.new(*args); NullObject.new; end

RSpec.configure do |config|
end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
redis_failover-0.8.5 spec/spec_helper.rb
redis_failover-0.8.4 spec/spec_helper.rb
redis_failover-0.8.3 spec/spec_helper.rb
redis_failover-0.8.2 spec/spec_helper.rb
redis_failover-0.8.1 spec/spec_helper.rb
redis_failover-0.8.0 spec/spec_helper.rb
redis_failover-0.7.0 spec/spec_helper.rb