diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-07-20 16:07:21 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-07-20 16:07:21 +0900 |
commit | 3c92a22faf6278e7a2d1ee13bd978bc659b72452 (patch) | |
tree | 45f5635a805a4d599c7d9f07471a81082dfb87e3 | |
parent | 36e69897b0524cdee6060c928c03af734afae664 (diff) | |
download | gitlab-ce-3c92a22faf6278e7a2d1ee13bd978bc659b72452.tar.gz |
Fix build presenter spec
-rw-r--r-- | spec/presenters/ci/build_presenter_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/presenters/ci/build_presenter_spec.rb b/spec/presenters/ci/build_presenter_spec.rb index 08fd35ccf4f..8f1763193d7 100644 --- a/spec/presenters/ci/build_presenter_spec.rb +++ b/spec/presenters/ci/build_presenter_spec.rb @@ -258,7 +258,7 @@ describe Ci::BuildPresenter do let(:build) { create(:ci_build, options: { artifacts: { paths: ['sample.txt'] } } ) } it 'presents artifacts hash' do - expect(presenter.config_artifacts).to include({ type: :archive, format: :zip, paths: ['sample.txt'] }) + expect(presenter.config_artifacts).to include({ artifact_type: :archive, artifact_format: :zip, paths: ['sample.txt'] }) end end @@ -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({ name: 'junit.xml', type: :junit, format: :gzip, paths: ['junit.xml'], when: :always }) + expect(presenter.config_artifacts).to include({ name: 'junit.xml', artifact_type: :junit, artifact_format: :gzip, paths: ['junit.xml'], when: 'always' }) end end @@ -275,8 +275,8 @@ describe Ci::BuildPresenter do it 'presents artifacts hash' do expect(presenter.config_artifacts).to include( - { name: 'junit.xml', type: :junit, format: :gzip, paths: ['junit.xml'], when: :always }, - { type: :archive, format: :zip, paths: ['sample.txt'] }) + { name: 'junit.xml', artifact_type: :junit, artifact_format: :gzip, paths: ['junit.xml'], when: 'always' }, + { artifact_type: :archive, artifact_format: :zip, paths: ['sample.txt'] }) end end |