class Spec::Rails::Example::CookiesProxy
def [](name)
def [](name) @example.response.cookies[name.to_s] end
def[]=(name, value)
def[]=(name, value) if ::Rails::VERSION::STRING >= '2.3' @example.request.cookies[name.to_s] = value else @example.request.cookies[name.to_s] = CGI::Cookie.new(name.to_s, value) end end
def delete(name)
def delete(name) @example.response.cookies.delete(name.to_s) end
def initialize(example)
def initialize(example) @example = example end