Sha256: a411a8174fac0b83782e49807dda4371531a3dce9684c59df81cd81ae8696ca5

Contents?: true

Size: 998 Bytes

Versions: 12

Compression:

Stored size: 998 Bytes

Contents

require File.join(File.dirname(__FILE__), "spec_helper")
startup_merb(:session_store => "memcache")

require File.join(File.dirname(__FILE__), "controllers", "sessions")

require 'memcache'
Merb::MemcacheSession.store = MemCache.new('127.0.0.1:11211', { :namespace => 'my_app' })

begin
  Merb::MemcacheSession.store.stats  
rescue MemCache::MemCacheError
  puts "\nWarning: no connection to MemCache server at 127.0.0.1:11211 - some specs will fail!\n\n"
end

describe Merb::MemcacheSession do
  
  before do 
    @session_class = Merb::MemcacheSession
    @session = @session_class.generate
  end
  
  it_should_behave_like "All session-store backends"
  
  it "should have a session_store_type class attribute" do
    @session.class.session_store_type.should == :memcache
  end
  
end

describe Merb::MemcacheSession, "mixed into Merb::Controller" do
  
  before(:all) { @session_class = Merb::MemcacheSession }
  
  it_should_behave_like "All session-stores mixed into Merb::Controller"
  
end

Version data entries

12 entries across 6 versions & 1 rubygems

Version Path
merb-core-1.1.3 spec10/public/session/memcached_session_spec.rb
merb-core-1.1.3 spec/public/session/memcached_session_spec.rb
merb-core-1.1.2 spec/public/session/memcached_session_spec.rb
merb-core-1.1.2 spec10/public/session/memcached_session_spec.rb
merb-core-1.1.1 spec10/public/session/memcached_session_spec.rb
merb-core-1.1.1 spec/public/session/memcached_session_spec.rb
merb-core-1.1.0 spec/public/session/memcached_session_spec.rb
merb-core-1.1.0 spec10/public/session/memcached_session_spec.rb
merb-core-1.1.0.rc1 spec10/public/session/memcached_session_spec.rb
merb-core-1.1.0.rc1 spec/public/session/memcached_session_spec.rb
merb-core-1.1.0.pre spec10/public/session/memcached_session_spec.rb
merb-core-1.1.0.pre spec/public/session/memcached_session_spec.rb