<commit_before>#-*- mode: ruby; x-counterpart: ../../../lib/dayplan/plan.rb; tab-width: 2; indent-tabs-mode: nil; x-auto-expand-tabs: true;-*-

require "spec_helper"

RSpec.describe "Dayplan::Plan" do
  let ( :date ) { DateTime.now }

  subject { Dayplan::Plan.new( acting_date: date ) }

  describe "instantiation" do
    it "creates a new dayplan object" do
      expect { subject }.not_to raise_error
    end

    it "accepts a date to act on"

    it "defaults the date if acting_date isn't provided"
  end

  describe "plan creation" do
    context "no existing file" do<commit_msg>Filled-in test to have a date to act on<commit_after>#-*- mode: ruby; x-counterpart: ../../../lib/dayplan/plan.rb; tab-width: 2; indent-tabs-mode: nil; x-auto-expand-tabs: true;-*-

require "spec_helper"

RSpec.describe "Dayplan::Plan" do
  let ( :date ) { DateTime.now }

  subject { Dayplan::Plan.new( acting_date: date ) }

  describe "instantiation" do
    it "creates a new dayplan object" do
      expect { subject }.not_to raise_error
    end

    it "accepts a date to act on" do
      expect( Dayplan::Plan ).to receive(:new).with( { acting_date: date } )
      subject
    end

    it "defaults the date if acting_date isn't provided"
  end

  describe "plan creation" do
    context "no existing file" do
{'fraction_non_alphanumeric': 0.1282642089093702, 'fraction_numerical': 0.0015360983102918587, 'mean_word_length': 3.071875, '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': '944648', 'n_tokens_mistral': 449, 'n_tokens_neox': 426, 'n_words': 142}