diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-12 03:10:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-12 03:10:11 +0300 |
commit | c6f0b221b71133792f2c9e5a026f3744c16d5ef5 (patch) | |
tree | 864e5737806d454fbf23c681d5bced9b3e4a7d77 /spec/services | |
parent | 3f45eb27e9586ad87682c2d125770e119a7e9fe0 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/alert_management/update_alert_status_service_spec.rb | 2 | ||||
-rw-r--r-- | spec/services/projects/import_export/export_service_spec.rb | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/spec/services/alert_management/update_alert_status_service_spec.rb b/spec/services/alert_management/update_alert_status_service_spec.rb index 5bdad7a8e19..44083128453 100644 --- a/spec/services/alert_management/update_alert_status_service_spec.rb +++ b/spec/services/alert_management/update_alert_status_service_spec.rb @@ -8,7 +8,7 @@ describe AlertManagement::UpdateAlertStatusService do describe '#execute' do subject(:execute) { described_class.new(alert, new_status).execute } - let(:new_status) { 'acknowledged' } + let(:new_status) { Types::AlertManagement::StatusEnum.values['ACKNOWLEDGED'].value } it 'updates the status' do expect { execute }.to change { alert.acknowledged? }.to(true) diff --git a/spec/services/projects/import_export/export_service_spec.rb b/spec/services/projects/import_export/export_service_spec.rb index 5beec51b370..32d0b52f096 100644 --- a/spec/services/projects/import_export/export_service_spec.rb +++ b/spec/services/projects/import_export/export_service_spec.rb @@ -46,8 +46,8 @@ describe Projects::ImportExport::ExportService do # in the corresponding EE spec. skip if Gitlab.ee? - # once for the normal repo, once for the wiki - expect(Gitlab::ImportExport::RepoSaver).to receive(:new).twice.and_call_original + # once for the normal repo, once for the wiki repo, and once for the design repo + expect(Gitlab::ImportExport::RepoSaver).to receive(:new).exactly(3).times.and_call_original service.execute end @@ -58,6 +58,12 @@ describe Projects::ImportExport::ExportService do service.execute end + it 'saves the design repo' do + expect(Gitlab::ImportExport::DesignRepoSaver).to receive(:new).and_call_original + + service.execute + end + it 'saves the lfs objects' do expect(Gitlab::ImportExport::LfsSaver).to receive(:new).and_call_original |