summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-12-23 12:43:45 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-23 12:43:45 +0000
commit3d62fe7ad9b32c2e68d253d0b2bd178215c65fa5 (patch)
tree7eca88d1569d0c8d1e167614552843d296d2c35c /spec
parent91da1dcc7a1e08e70e2a7daa60b7604d8ceecf9e (diff)
downloadgitlab-ce-3d62fe7ad9b32c2e68d253d0b2bd178215c65fa5.tar.gz
Add latest changes from gitlab-org/gitlab@13-7-stable-ee
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) }