Sha256: 44c4e2f5240c216b3ef1f65a2b5e8833b05683f42e99abdd9c67eebc8e700aab
Contents?: true
Size: 775 Bytes
Versions: 9
Compression:
Stored size: 775 Bytes
Contents
require 'spec_helper' describe Sinatra::MemcachedConnection do let(:klass) { Class.new.extend(Sinatra::MemcachedConnection) } context "#setup_memcached" do before(:each) { klass.setup_memcached 'localhost', '1337' } it { klass.should have_instance_variable(:memcached) } end context "#close_memcached" do before(:each) { klass.setup_memcached 'localhost', '1337' } # There isn't an Dalli api that tells if the connection is closed it { klass.respond_to? :close_memcached } end context "#memcached_connection" do before(:each) { klass.setup_memcached 'localhost', '1337' } it "should be the instance variable of memcached" do klass.instance_variable_get(:"@memcached").should be klass.memcached_connection end end end
Version data entries
9 entries across 9 versions & 1 rubygems