<commit_before>require 'test_helper'

class StatusTest < MiniTest::Spec
  let (:config) { Nit::Config.new }
  let (:output) do <<-EOF
    # On branch master
    # Changes not staged for commit:
    #   (use "git add <file>..." to update what will be committed)
    #   (use "git checkout -- <file>..." to discard changes in working directory)
    #
    #\tmodified:   on_stage.rb
    #\tmodified:   staged.rb
    #
    # Untracked files:
    #   (use "git add <file>..." to include in what will be committed)
    #
    #\tbrandnew.rb<commit_msg>use "old" index_renderer and indexer in status test for now.<commit_after>require 'test_helper'

class StatusTest < MiniTest::Spec
  let (:config) do
    Nit::Config.new.tap do |cfg| # TODO: test with all combinations?
      cfg.indexer         = "IntegerIndexer"
      cfg.index_renderer  = "PrependIndexRenderer"
    end
  end

  let (:output) do <<-EOF
    # On branch master
    # Changes not staged for commit:
    #   (use "git add <file>..." to update what will be committed)
    #   (use "git checkout -- <file>..." to discard changes in working directory)
    #
    #\tmodified:   on_stage.rb
    #\tmodified:   staged.rb
    #
    # Untracked files:
    #   (use "git add <file>..." to include in what will be committed)
    #
    #\tbrandnew.rb
{'fraction_non_alphanumeric': 0.12384615384615384, 'fraction_numerical': 0.0, 'mean_word_length': 2.5643835616438357, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 9, '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': '4077760', 'n_tokens_mistral': 428, 'n_tokens_neox': 417, 'n_words': 138}