Class: Authlogic::TestCase::MockCookieJar

Inherits:
Hash
  • Object
show all
Defined in:
lib/authlogic/test_case/mock_cookie_jar.rb

Overview

:nodoc:

Direct Known Subclasses

MockSignedCookieJar

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



4
5
6
7
# File 'lib/authlogic/test_case/mock_cookie_jar.rb', line 4

def [](key)
  hash = super
  hash && hash[:value]
end

#delete(key, options = {}) ⇒ Object



9
10
11
# File 'lib/authlogic/test_case/mock_cookie_jar.rb', line 9

def delete(key, options = {})
  super(key)
end

#signedObject



13
14
15
# File 'lib/authlogic/test_case/mock_cookie_jar.rb', line 13

def signed
  @signed ||= MockSignedCookieJar.new(self)
end