<commit_before>require 'spec_helper'
require 'lib/report_generator'

describe "reports:generate" do
  before do
    RakeSharedContext.root_dir = File.expand_path('..', __FILE__)
  end

  include_context "rake"

  its(:prerequisites) { should include("environment") }

  it "generates the report" do
    ReportGenerator.should_receive(:generate)
    subject.invoke
  end
end

<commit_msg>Fix a broken spec<commit_after>require 'spec_helper'
require 'lib/report_generator'

describe "reports:generate" do
  before do
    RakeSharedContext.root_dir = File.expand_path('..', __FILE__)
  end

  include_context "rake"

  it 'prerequisites should include "environment"' do
    expect(subject.prerequisites).to include("environment")
  end


  it "generates the report" do
    ReportGenerator.should_receive(:generate)
    subject.invoke
  end
end

{'fraction_non_alphanumeric': 0.09631391200951249, 'fraction_numerical': 0.0, 'mean_word_length': 4.6891891891891895, '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': '5241206', 'n_tokens_mistral': 270, 'n_tokens_neox': 252, 'n_words': 63}