Skip to content

Instantly share code, notes, and snippets.

@smtlaissezfaire
Created January 29, 2009 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smtlaissezfaire/54773 to your computer and use it in GitHub Desktop.
Save smtlaissezfaire/54773 to your computer and use it in GitHub Desktop.
it "should delete the values from the session" do
session[:foo] = "bar"
delete :destroy
session[:foo].should be_nil
end
class SessionController < ApplicationController
def destroy
reset_session
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment