Time.now => Time.zone.now

This commit is contained in:
simon lehericey 2018-10-25 15:11:12 +02:00
parent 13ffa61435
commit 2238e5bd9f
21 changed files with 55 additions and 55 deletions

View file

@ -36,7 +36,7 @@ describe 'AmazonV2RequestSigner' do
before { request_signer.sign(subject, 'fichier') }
it { expect(subject['date']).to eq(Time.now.httpdate) }
it { expect(subject['date']).to eq(Time.zone.now.httpdate) }
it { expect(subject['authorization']).to eq('AWS AKIAJFTRSGRH3RXX6D5Q:nkvviwZYb1V9HDrKyJZmY3Z8sSA=') }
end
end