features/support/env.rb in memcached-manager-0.4.0 vs features/support/env.rb in memcached-manager-1.0.0

- old
+ new

@@ -11,18 +11,19 @@ World(RSpec::Matchers) # Files Dir.glob("lib/**/*.rb").each do |file| - require_relative "../../#{file}" + require "./#{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' } +MemcachedConfigs = { host: ENV['MEMCACHED_1_PORT_11211_TCP_ADDR'] || 'localhost', port: '11211' } Memcached = Dalli::Client.new("#{MemcachedConfigs[:host]}:#{MemcachedConfigs[:port]}") +