diff options
Diffstat (limited to 'spec/services/clusters/refresh_service_spec.rb')
-rw-r--r-- | spec/services/clusters/refresh_service_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/clusters/refresh_service_spec.rb b/spec/services/clusters/refresh_service_spec.rb index 470639524b8..58ab3c3cf73 100644 --- a/spec/services/clusters/refresh_service_spec.rb +++ b/spec/services/clusters/refresh_service_spec.rb @@ -29,11 +29,11 @@ describe Clusters::RefreshService do end end - describe '#create_or_update_namespaces_for_cluster' do + describe '.create_or_update_namespaces_for_cluster' do let(:cluster) { create(:cluster, :provided_by_user, :project) } let(:project) { cluster.project } - subject { described_class.new.create_or_update_namespaces_for_cluster(cluster) } + subject { described_class.create_or_update_namespaces_for_cluster(cluster) } context 'cluster is project level' do include_examples 'creates a kubernetes namespace' @@ -64,10 +64,10 @@ describe Clusters::RefreshService do end end - describe '#create_or_update_namespaces_for_project' do + describe '.create_or_update_namespaces_for_project' do let(:project) { create(:project) } - subject { described_class.new.create_or_update_namespaces_for_project(project) } + subject { described_class.create_or_update_namespaces_for_project(project) } it 'creates no kubernetes namespaces' do expect { subject }.not_to change(project.kubernetes_namespaces, :count) |