Class: ActionController::TestSession

Inherits:
ActionDispatch::Session::AbstractStore::SessionHash show all
Defined in:
actionpack/lib/action_controller/test_case.rb

Overview

:nodoc:

Constant Summary

Instance Method Summary (collapse)

Methods inherited from ActionDispatch::Session::AbstractStore::SessionHash

#[], #[]=, #clear, #delete, #destroy, #has_key?, #inspect, #loaded?, #to_hash, #update

Methods inherited from Hash

#as_json, #assert_valid_keys, #deep_merge, #deep_merge!, #diff, #encode_json, #except, #except!, #extract!, #extractable_options?, from_xml, #reverse_merge, #reverse_merge!, #slice, #slice!, #stringify_keys, #stringify_keys!, #symbolize_keys, #symbolize_keys!, #to_param, #to_xml, #with_indifferent_access

Constructor Details

- (TestSession) initialize(session = {})

A new instance of TestSession



193
194
195
196
# File 'actionpack/lib/action_controller/test_case.rb', line 193

def initialize(session = {})
  replace(session.stringify_keys)
  @loaded = true
end

Instance Method Details

- (Boolean) exists?

Returns:

  • (Boolean)


198
# File 'actionpack/lib/action_controller/test_case.rb', line 198

def exists?; true; end