Class: ActionCable::Connection::TestCookieJar

Inherits:
ActiveSupport::HashWithIndifferentAccess show all
Defined in:
actioncable/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)

Constant Summary

Constants inherited from ActiveSupport::HashWithIndifferentAccess

ActiveSupport::HashWithIndifferentAccess::NOT_GIVEN

Instance Method Summary collapse

Methods inherited from ActiveSupport::HashWithIndifferentAccess

#[], [], #[]=, #assoc, #compact, #deep_stringify_keys, #deep_stringify_keys!, #deep_symbolize_keys, #default, #delete, #dig, #dup, #except, #extractable_options?, #fetch, #fetch_values, #initialize, #key?, #merge, #nested_under_indifferent_access, #regular_update, #regular_writer, #reject, #replace, #reverse_merge, #reverse_merge!, #select, #slice, #slice!, #stringify_keys, #stringify_keys!, #symbolize_keys, #to_hash, #to_options!, #transform_keys, #transform_keys!, #transform_values, #update, #values_at, #with_indifferent_access

Methods inherited from Hash

#as_json, #assert_valid_keys, #compact_blank, #compact_blank!, #deep_dup, #deep_merge?, #deep_stringify_keys, #deep_stringify_keys!, #deep_symbolize_keys, #deep_symbolize_keys!, #deep_transform_keys, #deep_transform_keys!, #deep_transform_values, #deep_transform_values!, #except, #except!, #extract!, #extractable_options?, from_trusted_xml, from_xml, #reverse_merge, #reverse_merge!, #slice!, #stringify_keys, #stringify_keys!, #symbolize_keys, #symbolize_keys!, #to_query, #to_xml, #with_indifferent_access

Methods included from ActiveSupport::DeepMergeable

#deep_merge, #deep_merge!, #deep_merge?

Constructor Details

This class inherits a constructor from ActiveSupport::HashWithIndifferentAccess

Instance Method Details

#encryptedObject



38
39
40
# File 'actioncable/lib/action_cable/connection/test_case.rb', line 38

def encrypted
  self[:encrypted] ||= {}.with_indifferent_access
end

#signedObject



34
35
36
# File 'actioncable/lib/action_cable/connection/test_case.rb', line 34

def signed
  self[:signed] ||= {}.with_indifferent_access
end