# Testuje ponowne przekierowanie do strony chronionej po zalogowaniu
def test_login_friendly_url_forwarding
  # danie strony chronionej
  get :index
  assert_response :redirect
  assert_redirected_to :action => "login"
  try_to_login @valid_user
  assert_response :redirect
  assert_redirected_to :action => "index"
  # Sprawd, czy przekierowujcy URL zosta wyczyszczony
  assert_nil session[:protected_page]
end

