Sha256: d59f216eef7ef171f7e9c58802d0204ba960296d8b024e6541183e0495663260
Contents?: true
Size: 909 Bytes
Versions: 2
Compression:
Stored size: 909 Bytes
Contents
require File.join(File.dirname(__FILE__), "spec_helper") describe Merb::Controller, "._session_cookie_domain" do before(:each) do Merb::Config[:session_cookie_domain].should_not be(nil) end it 'is set to Merb::Config[:session_cookie_domain] by default' do Merb::Controller._session_cookie_domain.should == Merb::Config[:session_cookie_domain] Merb::Test::Fixtures::Controllers::CookiesController._session_cookie_domain.should == Merb::Config[:session_cookie_domain] end it "can be overridden for particular controller" do Merb::Test::Fixtures::Controllers::OverridingSessionCookieDomain._session_cookie_domain.should == "overridden.merbivore.com" end it 'is inherited by subclasses unless overriden' do Merb::Test::Fixtures::Controllers::NotOverridingSessionCookieDomain._session_cookie_domain.should == Merb::Config[:session_cookie_domain] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
merb-core-0.9.5 | spec/public/controller/cookies_spec.rb |
merb-core-0.9.4 | spec/public/controller/cookies_spec.rb |