diff options
author | João Cunha <j.a.cunha@gmail.com> | 2019-06-03 15:42:06 +0100 |
---|---|---|
committer | João Cunha <j.a.cunha@gmail.com> | 2019-06-03 15:42:06 +0100 |
commit | 82e952a8f3fa5dd58eb7113caca6216fab5bab60 (patch) | |
tree | 8e4474e2c56ebf777d3df89dfdb231bc0d3c9d55 /spec | |
parent | a2aa160cea36fd8969e38eafb352154ee7d8f6f0 (diff) | |
download | gitlab-ce-82e952a8f3fa5dd58eb7113caca6216fab5bab60.tar.gz |
Move file one folder level up to avoid namespace conflict58941-use-gitlab-serverless-with-existing-knative-installation
Clusters::Cluster::KnativeServicesFinder becomes
Clusters::KnativeServicesFinder
This is to avoid loading race condition between:
```
module Clusters
class Cluster < ApplicationRecord
```
and
```
module Clusters
class Cluster
```
Diffstat (limited to 'spec')
-rw-r--r-- | spec/finders/clusters/knative_services_finder_spec.rb (renamed from spec/finders/clusters/cluster/knative_services_finder_spec.rb) | 2 | ||||
-rw-r--r-- | spec/models/clusters/cluster_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/finders/clusters/cluster/knative_services_finder_spec.rb b/spec/finders/clusters/knative_services_finder_spec.rb index 277200d06f4..b731c2bd6bf 100644 --- a/spec/finders/clusters/cluster/knative_services_finder_spec.rb +++ b/spec/finders/clusters/knative_services_finder_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe Clusters::Cluster::KnativeServicesFinder do +describe Clusters::KnativeServicesFinder do include KubernetesHelpers include ReactiveCachingHelpers diff --git a/spec/models/clusters/cluster_spec.rb b/spec/models/clusters/cluster_spec.rb index 60a19ccd48a..f206bb41f45 100644 --- a/spec/models/clusters/cluster_spec.rb +++ b/spec/models/clusters/cluster_spec.rb @@ -40,7 +40,7 @@ describe Clusters::Cluster, :use_clean_rails_memory_store_caching do it do expect(subject.knative_services_finder(subject.project)) - .to be_instance_of(Clusters::Cluster::KnativeServicesFinder) + .to be_instance_of(Clusters::KnativeServicesFinder) end describe '.enabled' do |