Backport EE runner spec changes to CE

This commit is contained in:
Matija Čupić 2018-05-10 00:12:12 +02:00
parent 1a9f90f8c1
commit 3fba8c37de
No known key found for this signature in database
GPG key ID: 4BAF84FFACD2E5DE

View file

@ -55,13 +55,9 @@ describe Clusters::Applications::Runner do
context 'without a runner' do context 'without a runner' do
let(:project) { create(:project) } let(:project) { create(:project) }
let(:cluster) { create(:cluster) } let(:cluster) { create(:cluster, projects: [project]) }
let(:gitlab_runner) { create(:clusters_applications_runner, cluster: cluster) } let(:gitlab_runner) { create(:clusters_applications_runner, cluster: cluster) }
before do
cluster.projects << project
end
it 'creates a runner' do it 'creates a runner' do
expect do expect do
subject subject