Use time.zone functions instead of server time functions

(Time.zone.today vs Date.today)
This commit is contained in:
maatinito 2019-11-25 13:39:42 +00:00 committed by Pierre de La Morinerie
parent 14bc2b99b9
commit 9de9a1fd71
7 changed files with 10 additions and 10 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) { Date.today }
let(:date) { Time.zone.today }
context "when operations of several days need to be signed" do
before do

View file

@ -33,7 +33,7 @@ describe FranceConnectService do
expect(subject).to have_attributes({
given_name: given_name,
family_name: family_name,
birthdate: Date.parse(birthdate),
birthdate: Time.zone.parse(birthdate).to_date,
birthplace: birthplace,
gender: gender,
email_france_connect: email,