<commit_before>require_relative '../../spec_helper'

describe 'Insup::Tracker' do

  before(:each) do
    @tracker = Insup::Tracker.new()
  end

  it 'should have correct tracked locations' do
    puts @tracker.tracked_files
  end

end<commit_msg>Tracker specs<commit_after>require_relative '../../spec_helper'

describe 'Insup::Tracker' do

  before(:each) do
    @tracker = Insup::Tracker.new()
  end

  it 'should list all tracked files' do
    tracked_files = @tracker.tracked_files
    locations = Insup::Settings.instance.tracked_locations

    expect do
      tracked_files.all? do |file|
        locations.any? do |loc|
          file.include?("#{loc}/")
        end
      end
    end.to be_true
  end

end
{'fraction_non_alphanumeric': 0.11624649859943978, 'fraction_numerical': 0.0, 'mean_word_length': 3.085714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?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': '643038', 'n_tokens_mistral': 238, 'n_tokens_neox': 229, 'n_words': 57}