Sha256: ee8727a27c645fe1036cd25925c07aae779530f7e53e8b1a74d1882ae76d005f

Contents?: true

Size: 573 Bytes

Versions: 1

Compression:

Stored size: 573 Bytes

Contents

$:.unshift(File.dirname(__FILE__))
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'memcache-lock'
require 'memcache'

require "rspec"
require "rspec/core"
require 'rspec/core/rake_task'

RSpec.configure do |config|
  config.mock_with :rr
  config.before :suite do
    config = YAML.load(IO.read((File.expand_path(File.dirname(__FILE__) + "/memcache.yml"))))['test']
    $memcache = MemCache.new(config)
    $memcache.servers = config['servers']
    $lock = MemcacheLock.new($memcache)
  end

  config.before :each do
    $memcache.flush_all
  end  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ht-memcache-lock-0.2.0 spec/spec_helper.rb