diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-01-05 15:22:45 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-01-08 16:22:18 +0900 |
commit | acfb8464bef7b43b730ddf433a8223fc240d968a (patch) | |
tree | 5a377e2f938c0544a9211e76d63979e843571775 /spec | |
parent | b8a275d3e46a4204505ed5a4b7a9b3a6d49c9b4f (diff) | |
download | gitlab-ce-acfb8464bef7b43b730ddf433a8223fc240d968a.tar.gz |
Fix static anylysy
Diffstat (limited to 'spec')
-rw-r--r-- | spec/migrations/migrate_kubernetes_service_to_new_clusters_architectures_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/migrations/migrate_kubernetes_service_to_new_clusters_architectures_spec.rb b/spec/migrations/migrate_kubernetes_service_to_new_clusters_architectures_spec.rb index d6643a63f0d..cade4d7df28 100644 --- a/spec/migrations/migrate_kubernetes_service_to_new_clusters_architectures_spec.rb +++ b/spec/migrations/migrate_kubernetes_service_to_new_clusters_architectures_spec.rb @@ -19,7 +19,7 @@ describe MigrateKubernetesServiceToNewClustersArchitectures, :migration do end it 'migrates the KubernetesService to Platform::Kubernetes' do - expect{ migrate! }.to change { Clusters::Cluster.count }.by(sample_num) + expect { migrate! }.to change { Clusters::Cluster.count }.by(sample_num) projects.each do |project| project.clusters.last.tap do |cluster| @@ -76,7 +76,7 @@ describe MigrateKubernetesServiceToNewClustersArchitectures, :migration do end it 'migrates the KubernetesService to Platform::Kubernetes without template' do - expect{ migrate! }.to change { Clusters::Cluster.count }.by(sample_num) + expect { migrate! }.to change { Clusters::Cluster.count }.by(sample_num) projects.each do |project| project.clusters.last.tap do |cluster| @@ -104,7 +104,7 @@ describe MigrateKubernetesServiceToNewClustersArchitectures, :migration do end it 'does not migrate the KubernetesService and disables the kubernetes_service' do # Because the corresponding Platform::Kubernetes already exists - expect{ migrate! }.not_to change { Clusters::Cluster.count } + expect { migrate! }.not_to change { Clusters::Cluster.count } kubernetes_service.reload expect(kubernetes_service).not_to be_active @@ -117,7 +117,7 @@ describe MigrateKubernetesServiceToNewClustersArchitectures, :migration do let!(:kubernetes_service) { create(:kubernetes_service, api_url: 'https://debug.kube.com', active: true, project: project) } it 'migrates the KubernetesService to Platform::Kubernetes' do - expect{ migrate! }.to change { Clusters::Cluster.count }.by(1) + expect { migrate! }.to change { Clusters::Cluster.count }.by(1) kubernetes_service.reload project.clusters.last.tap do |cluster| @@ -136,7 +136,7 @@ describe MigrateKubernetesServiceToNewClustersArchitectures, :migration do let!(:kubernetes_service) { create(:kubernetes_service, api_url: 'https://debug.kube.com', active: true, project: project) } it 'migrates the KubernetesService to Platform::Kubernetes with dedicated environment_scope' do # Because environment_scope is duplicated - expect{ migrate! }.to change { Clusters::Cluster.count }.by(1) + expect { migrate! }.to change { Clusters::Cluster.count }.by(1) kubernetes_service.reload project.clusters.last.tap do |cluster| @@ -156,7 +156,7 @@ describe MigrateKubernetesServiceToNewClustersArchitectures, :migration do let!(:kubernetes_service) { create(:kubernetes_service, api_url: 'https://debug.kube.com', active: true, project: project) } it 'migrates the KubernetesService to Platform::Kubernetes with dedicated environment_scope' do # Because environment_scope is duplicated - expect{ migrate! }.to change { Clusters::Cluster.count }.by(1) + expect { migrate! }.to change { Clusters::Cluster.count }.by(1) kubernetes_service.reload project.clusters.last.tap do |cluster| @@ -173,7 +173,7 @@ describe MigrateKubernetesServiceToNewClustersArchitectures, :migration do let!(:project) { create(:project) } it 'does not migrate the KubernetesService' do - expect{ migrate! }.not_to change { Clusters::Cluster.count } + expect { migrate! }.not_to change { Clusters::Cluster.count } end end end |