<commit_before>require 'spec_helper'

describe 'by weekend' do

  it "should be able to find the posts on the weekend of the 1st of January" do
    p Post.by_weekend.to_sql
    posts_count = Post.by_weekend.count
    posts_count.should eql(8)
  end

  it "should be able to use an alternative field" do
    Event.by_weekend(:field => "start_time").count.should eql(2)
  end
end<commit_msg>Correct post + events count in by_weekend_spec<commit_after>require 'spec_helper'

describe 'by weekend' do

  it "should be able to find the posts on the weekend of the 1st of January" do
    posts_count.should eql(10)
  end

  it "should be able to use an alternative field" do
    Event.by_weekend(:field => "start_time").count.should eql(3)
  end
end
{'fraction_non_alphanumeric': 0.07806191117092867, 'fraction_numerical': 0.009421265141318977, 'mean_word_length': 3.8947368421052633, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5426712', 'n_tokens_mistral': 253, 'n_tokens_neox': 242, 'n_words': 90}