Commit e67f3b78 authored by serenafang's avatar serenafang

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
......@@ -24,6 +24,7 @@ RSpec.describe EE::DeploymentPlatform do
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 @@ RSpec.describe EE::DeploymentPlatform do
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment