diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 14:59:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 14:59:07 +0300 |
commit | 8b573c94895dc0ac0e1d9d59cf3e8745e8b539ca (patch) | |
tree | 544930fb309b30317ae9797a9683768705d664c4 /spec/models/service_spec.rb | |
parent | 4b1de649d0168371549608993deac953eb692019 (diff) |
Add latest changes from gitlab-org/gitlab@13-7-stable-eev13.7.0-rc42
Diffstat (limited to 'spec/models/service_spec.rb')
-rw-r--r-- | spec/models/service_spec.rb | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/spec/models/service_spec.rb b/spec/models/service_spec.rb index 402c1a3d19b..04b3920cd6c 100644 --- a/spec/models/service_spec.rb +++ b/spec/models/service_spec.rb @@ -245,7 +245,7 @@ RSpec.describe Service do context 'with a previous existing service (MockCiService) and a new service (Asana)' do before do - Service.insert(type: 'MockCiService', instance: true) + Service.insert({ type: 'MockCiService', instance: true }) Service.delete_by(type: 'AsanaService', instance: true) end @@ -291,7 +291,7 @@ RSpec.describe Service do context 'with a previous existing service (Previous) and a new service (Asana)' do before do - Service.insert(type: 'PreviousService', template: true) + Service.insert({ type: 'PreviousService', template: true }) Service.delete_by(type: 'AsanaService', template: true) end @@ -916,5 +916,14 @@ RSpec.describe Service do described_class.available_services_names(include_dev: false) end + + it { expect(described_class.available_services_names).to include('jenkins') } + end + + describe '.project_specific_services_names' do + it do + expect(described_class.project_specific_services_names) + .to include(*described_class::PROJECT_SPECIFIC_SERVICE_NAMES) + end end end |