Skip to content

Instantly share code, notes, and snippets.

@bachue
Created March 8, 2013 08:44
Show Gist options
  • Save bachue/5115052 to your computer and use it in GitHub Desktop.
Save bachue/5115052 to your computer and use it in GitHub Desktop.
A bug in actionpack/lib/action_controller/cookies.rb The write_cookies is supposed to return true if Rails.env.test? == true
def write_cookie?(cookie)
@secure || !cookie[:secure] || defined?(Rails.env) && Rails.env.development?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment