<commit_before># frozen_string_literal: true

require 'test_helper'
require_relative 'base_controller_test'

module Folio
  class Console::DashboardControllerTest < Console::BaseControllerTest
    include Engine.routes.url_helpers

    test 'should or should not get index' do
      get console_root_url
      assert_redirected_to console_nodes_path

      sign_out @admin
      get console_root_url
      assert_redirected_to new_account_session_path
    end
  end
end<commit_msg>fix console dashboard test<commit_after># frozen_string_literal: true

require 'test_helper'
require_relative 'base_controller_test'

module Folio
  class Console::DashboardControllerTest < Console::BaseControllerTest
    include Engine.routes.url_helpers

    test 'should or should not get index' do
      get console_root_url
      assert_redirected_to console_nodes_path

      @admin.forget_me!
      sign_out @admin
      get console_root_url
      assert_redirected_to new_account_session_path
    end
  end
end
{'fraction_non_alphanumeric': 0.04104104104104104, 'fraction_numerical': 0.0, 'mean_word_length': 4.376344086021505, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '415282', 'n_tokens_mistral': 291, 'n_tokens_neox': 291, 'n_words': 73}