Sha256: cab6690c51632cdfabee3c2c0c05ae660961c19f308a7c19aabe80b086c49e84
Contents?: true
Size: 981 Bytes
Versions: 6
Compression:
Stored size: 981 Bytes
Contents
module Merb::Test::Fixtures::Controllers class Testing < Merb::Controller self._template_root = File.dirname(__FILE__) / "views" end class CookiesController < Testing def store_cookies cookies.set_cookie(:awesome, 'super-cookie', :domain => 'blog.merbivore.com') cookies[:foo] = 'bar' cookies.set_cookie(:oldcookie, 'this is really old', :expires => Time.utc(2020)) cookies.set_cookie(:safecook, 'no-hackers-here', :secure => true) cookies.set_cookie(:xsscook, 'only-through-http', :http_only => true) end def destroy_cookies cookies.delete(:foo) end def retrieve_cookies end end class OverridingDefaultCookieDomain < CookiesController self._default_cookie_domain = "overridden.merbivore.com" end class NotOverridingDefaultCookieDomain < CookiesController end class EmptyDefaultCookieDomain < CookiesController self._default_cookie_domain = '' end end
Version data entries
6 entries across 6 versions & 1 rubygems