diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-01-05 01:35:41 +0300 |
---|---|---|
committer | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-01-05 01:35:41 +0300 |
commit | 93e9793ce38bb9b5d519f5ca86cb56201549ef19 (patch) | |
tree | 82087bc1aae9f01eea1f908bbfefe71514741a5b /spec/models/service_spec.rb | |
parent | 6f1b4dc76b4619f538b7216ad3a10ca9336d0c2b (diff) |
Create Kubernetes based on Application Templates
Diffstat (limited to 'spec/models/service_spec.rb')
-rw-r--r-- | spec/models/service_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/service_spec.rb b/spec/models/service_spec.rb index 540615de117..ab6678cab38 100644 --- a/spec/models/service_spec.rb +++ b/spec/models/service_spec.rb @@ -272,4 +272,12 @@ describe Service do expect(service.deprecation_message).to be_nil end end + + describe '.find_by_template' do + let!(:kubernetes_service) { create(:kubernetes_service, template: true) } + + it 'returns service template' do + expect(KubernetesService.find_by_template).to eq(kubernetes_service) + end + end end |