Sha256: 814e0bcbab7e86dcb9db3fd8a2c90258fb16aa4359b997ceba54d6941376bc9e

Contents?: true

Size: 735 Bytes

Versions: 3

Compression:

Stored size: 735 Bytes

Contents

require 'cucumber'
require 'capybara/cucumber'
require 'faraday'
require 'dalli'
require 'rspec'
require 'rspec/expectations'
require 'capybara/poltergeist'
require 'sinatra'

Capybara.javascript_driver = :poltergeist

World(RSpec::Matchers)

# Files
Dir.glob("lib/**/*.rb").each do |file|
  require_relative "../../#{file}"
end

Capybara.app = Rack::Builder.parse_file(File.expand_path('../../../config.ru', __FILE__)).first

API = Faraday.new do |conn| conn.adapter :rack, Rack::URLMap.new({
    "/api" => MemcachedManager::API.new,
    "/" => MemcachedManager::Webapp.new
  })
end

MemcachedConfigs = { host: 'localhost', port: '11211' }
Memcached        = Dalli::Client.new("#{MemcachedConfigs[:host]}:#{MemcachedConfigs[:port]}")

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
memcached-manager-0.4.0 features/support/env.rb
memcached-manager-0.3.0 features/support/env.rb
memcached-manager-0.2.2 features/support/env.rb