Sha256: af1f13bf0da30cb553a8e33492a955017d4abd0173e2bd6132cf78b05f50ba50

Contents?: true

Size: 690 Bytes

Versions: 8

Compression:

Stored size: 690 Bytes

Contents

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

describe Merb::MemorySession do
  
  before do 
    @session_class = Merb::MemorySession
    @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 == :memory
  end
  
end

describe Merb::MemorySession, "mixed into Merb::Controller" do

  before(:all) { @session_class = Merb::MemorySession }
  
  it_should_behave_like "All session-stores mixed into Merb::Controller"

end

Version data entries

8 entries across 6 versions & 1 rubygems

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