<commit_before>require 'rails_helper'

RSpec.describe Task, type: :model do
  fixtures :tasks, :users

  let(:weekly_task)  { tasks(:weekly) }
  let(:monthly_task) { tasks(:monthly) }

  describe '.weekly' do
    it 'includes weekly tasks' do
      expect(Task.weekly).to include(weekly_task)
    end

    it 'does not include monthly tasks' do
      expect(Task.weekly).not_to include(monthly_task)
    end
  end

  describe '.monthly' do
    it 'includes monthly tasks' do
      expect(Task.monthly).to include(monthly_task)
    end

    it 'does not include weekly tasks' do
      expect(Task.monthly).not_to include(weekly_task)
    end

  end

  describe "" do
    let(:pepe) { users(:pepe)}
    let(:lola) { users(:lola)}
    let(:maria) { users(:maria)}
    let(:monthly_with_author_only) { tasks(:monthly_with_author_only)}
<commit_msg>Add description to describe group<commit_after>require 'rails_helper'

RSpec.describe Task, type: :model do
  fixtures :tasks, :users

  let(:weekly_task)  { tasks(:weekly) }
  let(:monthly_task) { tasks(:monthly) }

  describe '.weekly' do
    it 'includes weekly tasks' do
      expect(Task.weekly).to include(weekly_task)
    end

    it 'does not include monthly tasks' do
      expect(Task.weekly).not_to include(monthly_task)
    end
  end

  describe '.monthly' do
    it 'includes monthly tasks' do
      expect(Task.monthly).to include(monthly_task)
    end

    it 'does not include weekly tasks' do
      expect(Task.monthly).not_to include(weekly_task)
    end

  end

  describe "scope" do
    let(:pepe) { users(:pepe)}
    let(:lola) { users(:lola)}
    let(:maria) { users(:maria)}
    let(:monthly_with_author_only) { tasks(:monthly_with_author_only)}

{'fraction_non_alphanumeric': 0.11675423234092236, 'fraction_numerical': 0.0, 'mean_word_length': 3.570666666666667, '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': '7215174', 'n_tokens_mistral': 595, 'n_tokens_neox': 576, 'n_words': 141}