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

- (Object) [](key)



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

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

- (Object) delete(key, options = {})



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

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

- (Object) signed



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

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