<commit_before>require "test_helper"

class DetailedGuidesControllerPropositionTest < ActionController::TestCase
  class TestController < DetailedGuidesController
    def test; render text: "ok"; end
  end

  tests TestController

  test "sets google analytics proposition to detailed-guidance for all actions" do
    with_routing do |map|
      map.draw do
        match '/test', to: 'detailed_guides_controller_proposition_test/test#test'
      end
      @controller.stubs(:search_detailed_guides_path)
      get :test
    end
    assert_equal "detailed-guidance", response.headers["X-Slimmer-Proposition"]
  end
end<commit_msg>Update proposition test<commit_after>require "test_helper"

class DetailedGuidesControllerPropositionTest < ActionController::TestCase
  class TestController < DetailedGuidesController
    def test; render text: "ok"; end
  end

  tests TestController

  test "sets google analytics proposition to detailed-guidance for all actions" do
    with_routing do |map|
      map.draw do
        match '/test', to: 'detailed_guides_controller_proposition_test/test#test'
      end
      @controller.stubs(:search_detailed_guides_path)
      get :test
    end
    assert_equal "specialist", response.headers["X-Slimmer-Proposition"]
  end
end
{'fraction_non_alphanumeric': 0.07205067300079177, 'fraction_numerical': 0.0, 'mean_word_length': 4.310924369747899, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6345009', 'n_tokens_mistral': 360, 'n_tokens_neox': 351, 'n_words': 95}