Class: ActionCable::Connection::TestCookieJar

Inherits:
TestCookies 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 TestCookies

#[]=

Methods inherited from ActiveSupport::HashWithIndifferentAccess

#[], [], #[]=, #assoc, #compact, #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!, #symbolize_keys, #to_hash, #to_options!, #to_proc, #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!, #extract!, #extractable_options?, from_trusted_xml, from_xml, #present?, #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



48
49
50
# File 'actioncable/lib/action_cable/connection/test_case.rb', line 48

def encrypted
  @encrypted ||= TestCookies.new
end

#signedObject



44
45
46
# File 'actioncable/lib/action_cable/connection/test_case.rb', line 44

def signed
  @signed ||= TestCookies.new
end