diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 14:18:50 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 14:18:50 +0300 |
commit | 8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781 (patch) | |
tree | a77e7fe7a93de11213032ed4ab1f33a3db51b738 /spec/models/prometheus_alert_event_spec.rb | |
parent | 00b35af3db1abfe813a778f643dad221aad51fca (diff) |
Add latest changes from gitlab-org/gitlab@13-1-stable-ee
Diffstat (limited to 'spec/models/prometheus_alert_event_spec.rb')
-rw-r--r-- | spec/models/prometheus_alert_event_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/prometheus_alert_event_spec.rb b/spec/models/prometheus_alert_event_spec.rb index 040113643dd..85e57cb08c3 100644 --- a/spec/models/prometheus_alert_event_spec.rb +++ b/spec/models/prometheus_alert_event_spec.rb @@ -49,7 +49,7 @@ describe PrometheusAlertEvent do describe 'transaction' do describe 'fire' do - let(:started_at) { Time.now } + let(:started_at) { Time.current } context 'when status is none' do subject { build(:prometheus_alert_event, :none) } @@ -75,7 +75,7 @@ describe PrometheusAlertEvent do end describe 'resolve' do - let(:ended_at) { Time.now } + let(:ended_at) { Time.current } context 'when firing' do subject { build(:prometheus_alert_event) } |