From 7e9c479f7de77702622631cff2628a9c8dcbc627 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 19 Nov 2020 08:27:35 +0000 Subject: Add latest changes from gitlab-org/gitlab@13-6-stable-ee --- spec/helpers/time_helper_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'spec/helpers/time_helper_spec.rb') diff --git a/spec/helpers/time_helper_spec.rb b/spec/helpers/time_helper_spec.rb index 6663a5c81c8..3e406f5e74e 100644 --- a/spec/helpers/time_helper_spec.rb +++ b/spec/helpers/time_helper_spec.rb @@ -37,4 +37,14 @@ RSpec.describe TimeHelper do it { expect(duration_in_numbers(duration)).to eq formatted_string } end end + + describe "#time_in_milliseconds" do + it "returns the time in milliseconds" do + freeze_time do + time = (Time.now.to_f * 1000).to_i + + expect(time_in_milliseconds).to eq time + end + end + end end -- cgit v1.2.1