Skip to content
Snippets Groups Projects
Commit e67f3b78 authored by Serena Fang's avatar Serena Fang
Browse files

Add tests to deployment_platform_spec

Specs were erroneously passing when multiple_clusters: false, so add
expects to verify that it is returning the default cluster.
parent d9a1e681
No related branches found
No related tags found
1 merge request!35195Add tests to deployment_platform_spec
......@@ -24,6 +24,7 @@
end
it 'returns a kubernetes platform' do
is_expected.not_to eq(cluster.platform_kubernetes)
is_expected.to be_kind_of(Clusters::Platforms::Kubernetes)
end
end
......@@ -45,8 +46,8 @@
stub_licensed_features(multiple_clusters: false)
end
it 'returns a kubernetes platform' do
is_expected.to be_kind_of(Clusters::Platforms::Kubernetes)
it 'returns default cluster' do
is_expected.to eq(default_cluster.platform_kubernetes)
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment