Commit 1a5063df authored by Robert Speicher's avatar Robert Speicher

Merge branch 'fix-deployment-platfom-spec' into 'master'

Add tests to deployment_platform_spec

See merge request gitlab-org/gitlab!35195
parents ebe5d683 e67f3b78
......@@ -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