Created
August 22, 2008 19:26
-
-
Save wycats/6840 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "should allow you to use cookie-based sessions" do | |
with_cookies(@controller_class) do | |
controller = dispatch_to(@controller_class, :store_in_cookie) | |
controller.request.session(:cookie)[:foo].should == "cookie-bar" | |
controller.request.session[:foo].should == "cookie-bar" # defaults to the first registered store | |
end | |
end | |
it "should allow you to use cookie-based sessions" do | |
with_cookies(@controller_class) do | |
controller = dispatch_to(@controller_class, :store_in_cookie) | |
controller = dispatch_to(@controller_class, :retrieve) | |
controller.request.session(:cookie)[:foo].should == "cookie-bar" | |
controller.request.session[:foo].should == "cookie-bar" # defaults to the first registered store | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment