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 ...@@ -24,6 +24,7 @@ RSpec.describe EE::DeploymentPlatform do
end end
it 'returns a kubernetes platform' do it 'returns a kubernetes platform' do
is_expected.not_to eq(cluster.platform_kubernetes)
is_expected.to be_kind_of(Clusters::Platforms::Kubernetes) is_expected.to be_kind_of(Clusters::Platforms::Kubernetes)
end end
end end
...@@ -45,8 +46,8 @@ RSpec.describe EE::DeploymentPlatform do ...@@ -45,8 +46,8 @@ RSpec.describe EE::DeploymentPlatform do
stub_licensed_features(multiple_clusters: false) stub_licensed_features(multiple_clusters: false)
end end
it 'returns a kubernetes platform' do it 'returns default cluster' do
is_expected.to be_kind_of(Clusters::Platforms::Kubernetes) is_expected.to eq(default_cluster.platform_kubernetes)
end end
end 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