Class: ActionCable::Connection::TestCookieJar
- Inherits:
-
ActiveSupport::HashWithIndifferentAccess
- Object
- ActiveSupport::HashWithIndifferentAccess
- ActionCable::Connection::TestCookieJar
- Defined in:
- lib/action_cable/connection/test_case.rb
Overview
We don’t want to use the whole “encryption stack” for connection unit-tests, but we want to make sure that users test against the correct types of cookies (i.e. signed or encrypted or plain)
Instance Method Summary collapse
Instance Method Details
#encrypted ⇒ Object
38 39 40 |
# File 'lib/action_cable/connection/test_case.rb', line 38 def encrypted self[:encrypted] ||= {}.with_indifferent_access end |
#signed ⇒ Object
34 35 36 |
# File 'lib/action_cable/connection/test_case.rb', line 34 def signed self[:signed] ||= {}.with_indifferent_access end |