Sha256: 2ba4bf828d23f082742e67546e29eb578dfda1a5306b3a4be2040db6a9503d20

Contents?: true

Size: 510 Bytes

Versions: 2

Compression:

Stored size: 510 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.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']
  end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ht-memcache-lock-0.3.1 spec/spec_helper.rb
ht-memcache-lock-0.3.0 spec/spec_helper.rb