From 9c84f946ffd8a83ed8d2f67768a7771b220d2dd0 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Wed, 12 Jan 2022 02:38:07 +0100 Subject: [PATCH] Fix test failing under macOS --- spec/helpers/bootstrap_helper_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/helpers/bootstrap_helper_spec.rb b/spec/helpers/bootstrap_helper_spec.rb index 286d2e6d..61620716 100644 --- a/spec/helpers/bootstrap_helper_spec.rb +++ b/spec/helpers/bootstrap_helper_spec.rb @@ -88,9 +88,9 @@ describe BootstrapHelper, :type => :helper do describe "#time_tooltip" do it 'should return a tooltip with proper time values' do - Timecop.freeze(Time.local(1984)) do + Timecop.freeze(Time.utc(1984)) do @user = FactoryBot.create(:user) - Timecop.travel(Time.now + 10.minutes) + Timecop.travel(Time.now.utc + 10.minutes) expect(time_tooltip(@user)).to eq("10 minutes") end