summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bennett <lbennett@gitlab.com>2017-12-12 01:51:30 +0000
committerLuke Bennett <lbennett@gitlab.com>2017-12-12 01:51:30 +0000
commit1f3c75033a9a2902aef3bfa49cefcadd92d3dacb (patch)
tree457430bd4af9d71856eeb38c6df62b6747d7f70d
parent2a181d68c810e89ff5d2e49999775d8b58adb394 (diff)
downloadgitlab-ce-backport-migrate_gcp_clusters_to_new_clusters_architectures_spec-changes-to-ce.tar.gz
backport migrate_gcp_clusters_to_new_clusters_architectures_spec changes to cebackport-migrate_gcp_clusters_to_new_clusters_architectures_spec-changes-to-ce
-rw-r--r--spec/migrations/migrate_gcp_clusters_to_new_clusters_architectures_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/migrations/migrate_gcp_clusters_to_new_clusters_architectures_spec.rb b/spec/migrations/migrate_gcp_clusters_to_new_clusters_architectures_spec.rb
index 05f281fffff..2dcd343961b 100644
--- a/spec/migrations/migrate_gcp_clusters_to_new_clusters_architectures_spec.rb
+++ b/spec/migrations/migrate_gcp_clusters_to_new_clusters_architectures_spec.rb
@@ -133,8 +133,7 @@ describe MigrateGcpClustersToNewClustersArchitectures, :migration do
expect(cluster.provider_type).to eq('gcp')
expect(cluster.platform_type).to eq('kubernetes')
- expect(cluster.project).to eq(project)
- expect(project.clusters).to include(cluster)
+ expect(cluster.project_ids).to include(project.id)
expect(cluster.provider_gcp.cluster).to eq(cluster)
expect(cluster.provider_gcp.status).to eq(status)