Sha256: d9d8e5a59186505b85dc953525d14c2d3aea15c987538bfdb31b76c6fdfc46c9
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
$:.push File.join(File.dirname(__FILE__), '..', 'lib') require 'merb-core' require 'merb-core/test' require 'merb-core/test/helpers' Merb::BootLoader.before_app_loads do require 'sequel' DB = Sequel.sqlite require "merb/session/sequel_session" end Merb.start :environment => 'test', :adapter => 'runner', :session_store => 'sequel' Spec::Runner.configure do |config| config.include Merb::Test::RequestHelper end # Load up the shared specs from merb-core if (gem_spec = Gem.source_index.search('merb-core').last) && gem_spec.files.include?('spec/public/session/controllers/sessions.rb') require gem_spec.full_gem_path / 'spec/public/session/controllers/sessions.rb' require gem_spec.full_gem_path / 'spec/public/session/session_spec.rb' end describe Merb::SequelSession do before do @session_class = Merb::SequelSession @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 == :sequel end end describe Merb::SequelSession, "mixed into Merb::Controller" do before(:all) { @session_class = Merb::SequelSession } it_should_behave_like "All session-stores mixed into Merb::Controller" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
merb_sequel-0.9.6 | specs/merb_sequel_session_spec.rb |