Methods
T
Instance Public methods
test_calling_delete_removes_item_and_returns_its_value()
# File actionpack/test/dispatch/session/test_session_test.rb, line 17
def test_calling_delete_removes_item_and_returns_its_value
  session = ActionController::TestSession.new
  session[:key] = 'value'
  assert_equal('value', session[:key])
  assert_equal('value', session.delete(:key))
  assert_nil(session[:key])
end
test_calling_update_with_params_passes_to_attributes()
# File actionpack/test/dispatch/session/test_session_test.rb, line 25
def test_calling_update_with_params_passes_to_attributes
  session = ActionController::TestSession.new()
  session.update('key' => 'value')
  assert_equal('value', session[:key])
end
test_clear_emptys_session()
# File actionpack/test/dispatch/session/test_session_test.rb, line 31
def test_clear_emptys_session
  session = ActionController::TestSession.new({:one => 'one', :two => 'two'})
  session.clear
  assert_nil(session[:one])
  assert_nil(session[:two])
end
test_ctor_allows_setting()
# File actionpack/test/dispatch/session/test_session_test.rb, line 5
def test_ctor_allows_setting
  session = ActionController::TestSession.new({:one => 'one', :two => 'two'})
  assert_equal('one', session[:one])
  assert_equal('two', session[:two])
end
test_setting_session_item_sets_item()
# File actionpack/test/dispatch/session/test_session_test.rb, line 11
def test_setting_session_item_sets_item
  session = ActionController::TestSession.new
  session[:key] = 'value'
  assert_equal('value', session[:key])
end