<commit_before>require "test_helper"

class TalentsControllerTest < ActionController::TestCase
  test "should set title and description" do
    get :talents_by_class
    assert_response :success
    assert_not_nil assigns(:title)
    assert_not_nil assigns(:description)
  end
end
<commit_msg>talents by class test<commit_after>require "test_helper"

class TalentsControllerTest < ActionController::TestCase
  test "should set title and description" do
    get :talents_by_class
    assert_response :success
    assert_not_nil assigns(:title)
    assert_not_nil assigns(:description)
  end

  test "should show talents by class" do
    get(:talents_by_class, {"class" => "druid", "spec" => "spec10"})
    assert_response :success

    assert_not_nil assigns(:class_slug)
    assert_not_nil assigns(:spec_slug)
    assert_not_nil assigns(:counts)
    assert_not_nil assigns(:total)
    assert_not_nil assigns(:class_talents)

    assert_not_empty :counts
    assert_not_empty :class_talents

    assert_not_equal(0, :total)
  end
end

{'fraction_non_alphanumeric': 0.07647628267182963, 'fraction_numerical': 0.002904162633107454, 'mean_word_length': 4.976878612716763, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6530327', 'n_tokens_mistral': 330, 'n_tokens_neox': 317, 'n_words': 78}