<commit_before># frozen_string_literal: true
# encoding: utf-8

require 'spec_helper'

describe 'Queries on Date fields' do
  let(:query) do
    Band.where(founded: arg)
  end

  let(:selector) { query.selector }

  shared_examples 'converts to beginning of day in UTC' do
    it 'converts to beginning of day in UTC' do
      selector['founded'].should == arg.dup.beginning_of_day.utc.beginning_of_day
    end
  end<commit_msg>MONGOID-5091 Fix timezone dependent spec (#4992)<commit_after># frozen_string_literal: true
# encoding: utf-8

require 'spec_helper'

describe 'Queries on Date fields' do
  let(:query) do
    Band.where(founded: arg)
  end

  let(:selector) { query.selector }

  shared_examples 'converts to beginning of day in UTC' do
    it 'converts to beginning of day in UTC' do
      selector['founded'].should == Time.utc(arg.year, arg.month, arg.day)
    end
  end
{'fraction_non_alphanumeric': 0.09954751131221719, 'fraction_numerical': 0.011312217194570135, 'mean_word_length': 3.9441340782122905, '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': '7381900', 'n_tokens_mistral': 304, 'n_tokens_neox': 284, 'n_words': 90}