Sha256: aa088e0c4d30f78ba6c3a27295a905ba10792a6a61d1aa208ff09b0a5d304259

Contents?: true

Size: 583 Bytes

Versions: 3

Compression:

Stored size: 583 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'memcache-lock'
require 'rubygems'
require 'active_support'
require 'spec'
require 'spec/autorun'

Spec::Runner.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 = ActiveSupport::Cache::MemCacheStore.new(*config['servers'])
    $lock = MemcacheLock.new($memcache)
  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
smira-memcache-lock-0.2.1 spec/spec_helper.rb
smira-memcache-lock-0.2.0 spec/spec_helper.rb
smira-memcache-lock-0.1.0 spec/spec_helper.rb