summaryrefslogtreecommitdiff
path: root/spec/presenters/ci/build_presenter_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/presenters/ci/build_presenter_spec.rb')
-rw-r--r--spec/presenters/ci/build_presenter_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/presenters/ci/build_presenter_spec.rb b/spec/presenters/ci/build_presenter_spec.rb
index 78d00c4e14a..08fd35ccf4f 100644
--- a/spec/presenters/ci/build_presenter_spec.rb
+++ b/spec/presenters/ci/build_presenter_spec.rb
@@ -266,7 +266,7 @@ describe Ci::BuildPresenter do
let(:build) { create(:ci_build, options: { artifacts: { reports: { junit: ['junit.xml'] } } } ) }
it 'presents artifacts hash' do
- expect(presenter.config_artifacts).to include({ type: :junit, format: :gzip, paths: ['junit.xml'] })
+ expect(presenter.config_artifacts).to include({ name: 'junit.xml', type: :junit, format: :gzip, paths: ['junit.xml'], when: :always })
end
end
@@ -275,7 +275,7 @@ describe Ci::BuildPresenter do
it 'presents artifacts hash' do
expect(presenter.config_artifacts).to include(
- { type: :junit, format: :gzip, paths: ['junit.xml'] },
+ { name: 'junit.xml', type: :junit, format: :gzip, paths: ['junit.xml'], when: :always },
{ type: :archive, format: :zip, paths: ['sample.txt'] })
end
end