summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/services/ci/build_report_result_service_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/services/ci/build_report_result_service_spec.rb b/spec/services/ci/build_report_result_service_spec.rb
index 7c2702af086..244ffbf4bbd 100644
--- a/spec/services/ci/build_report_result_service_spec.rb
+++ b/spec/services/ci/build_report_result_service_spec.rb
@@ -6,6 +6,12 @@ RSpec.describe Ci::BuildReportResultService do
describe '#execute', :clean_gitlab_redis_shared_state do
subject(:build_report_result) { described_class.new.execute(build) }
+ around do |example|
+ travel_to(DateTime.parse('2020-07-01')) do
+ example.run
+ end
+ end
+
context 'when build is finished' do
let(:build) { create(:ci_build, :success, :test_reports) }