class ActionCable::Connection::TestCookieJar

Parent:
ActiveSupport::HashWithIndifferentAccess

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)

Public Instance Methods

encrypted() Show source
# File actioncable/lib/action_cable/connection/test_case.rb, line 38
def encrypted
  self[:encrypted] ||= {}.with_indifferent_access
end
signed() Show source
# File actioncable/lib/action_cable/connection/test_case.rb, line 34
def signed
  self[:signed] ||= {}.with_indifferent_access
end

© 2004–2019 David Heinemeier Hansson
Licensed under the MIT License.