Bug with time zone: Time.zone.today looses time_zone and may breaks database comparisons

This commit is contained in:
maatinito 2019-12-02 10:27:05 -10:00 committed by simon lehericey
parent 1b17218b5c
commit 9672d892e9
3 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@ describe BillSignatureService do
describe ".grouped_unsigned_operation_until" do
subject { BillSignatureService.grouped_unsigned_operation_until(date).length }
let(:date) { Time.zone.today }
let(:date) { Time.zone.now.beginning_of_day }
context "when operations of several days need to be signed" do
before do