Class: Innate::Mock::Session
- Inherits:
-
Object
- Object
- Innate::Mock::Session
- Defined in:
- lib/innate/mock.rb
Instance Attribute Summary collapse
-
#cookie ⇒ Object
Returns the value of attribute cookie.
Instance Method Summary collapse
- #extract_cookie(method, path, hash = {}) ⇒ Object
-
#initialize ⇒ Session
constructor
A new instance of Session.
Constructor Details
#initialize ⇒ Session
28 29 30 |
# File 'lib/innate/mock.rb', line 28 def initialize = nil end |
Instance Attribute Details
#cookie ⇒ Object
Returns the value of attribute cookie.
26 27 28 |
# File 'lib/innate/mock.rb', line 26 def end |
Instance Method Details
#extract_cookie(method, path, hash = {}) ⇒ Object
38 39 40 41 42 43 44 45 46 |
# File 'lib/innate/mock.rb', line 38 def (method, path, hash = {}) hash['HTTP_COOKIE'] ||= if response = Mock::mock(method, path, hash) = response['Set-Cookie'] = if response end |