Bug with time zone: Time.zone.today looses time_zone and may breaks database comparisons
This commit is contained in:
parent
1b17218b5c
commit
9672d892e9
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue