<commit_before>require "spec_helper" 
require "test_data_reader_module" 

# This test reads test data from disk
describe WeeksManager do
  before do 
    writer = mock()
    @lines = TestDataReader.read_test_data
  end

  describe "Valid cases" do 
    it "Creates weeks when input lines are not empty" do 
      weeks_manager = WeeksManager.new
      weeks_manager.convert_data_to_weeks(@lines) 

      weeks_manager.weeks.wont_be_nil <commit_msg>Removes not needed mock from tests<commit_after>require "spec_helper" 
require "test_data_reader_module" 

# This test reads test data from disk
describe WeeksManager do
  before do 
    @lines = TestDataReader.read_test_data
  end

  describe "Valid cases" do 
    it "Creates weeks when input lines are not empty" do 
      weeks_manager = WeeksManager.new
      weeks_manager.convert_data_to_weeks(@lines) 

      weeks_manager.weeks.wont_be_nil 
{'fraction_non_alphanumeric': 0.054626532887402456, 'fraction_numerical': 0.0, 'mean_word_length': 3.854054054054054, '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': '4935280', 'n_tokens_mistral': 288, 'n_tokens_neox': 267, 'n_words': 81}