Commit 9935e751 authored by Jarka Košanová's avatar Jarka Košanová

Merge branch 'project_cluster_controller_spec_redundant_let' into 'master'

Remove redundant let calls in spec

See merge request gitlab-org/gitlab!26834
parents 2ffa36b4 31334803
...@@ -23,7 +23,6 @@ describe Projects::ClustersController do ...@@ -23,7 +23,6 @@ describe Projects::ClustersController do
describe 'functionality' do describe 'functionality' do
context 'when project has one or more clusters' do context 'when project has one or more clusters' do
let(:project) { create(:project) }
let!(:enabled_cluster) { create(:cluster, :provided_by_gcp, projects: [project]) } let!(:enabled_cluster) { create(:cluster, :provided_by_gcp, projects: [project]) }
let!(:disabled_cluster) { create(:cluster, :disabled, :provided_by_gcp, :production_environment, projects: [project]) } let!(:disabled_cluster) { create(:cluster, :disabled, :provided_by_gcp, :production_environment, projects: [project]) }
...@@ -53,8 +52,6 @@ describe Projects::ClustersController do ...@@ -53,8 +52,6 @@ describe Projects::ClustersController do
end end
context 'when project does not have a cluster' do context 'when project does not have a cluster' do
let(:project) { create(:project) }
it 'returns an empty state page' do it 'returns an empty state page' do
go go
......
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