Add project to jupyter cluster app factory spec

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2018-09-13 14:57:41 +03:00
parent 3784a37086
commit ee57509dc8
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
2 changed files with 2 additions and 6 deletions

View File

@ -46,7 +46,7 @@ FactoryBot.define do
factory :clusters_applications_jupyter, class: Clusters::Applications::Jupyter do
oauth_application factory: :oauth_application
cluster factory: %i(cluster with_installed_helm provided_by_gcp)
cluster factory: %i(cluster with_installed_helm provided_by_gcp project)
end
end
end

View File

@ -114,11 +114,7 @@ describe Clusters::Applications::Jupyter do
end
context 'when cluster belongs to a project' do
let(:project) { create(:project) }
before do
application.cluster.projects << project
end
let(:project) { application.cluster.first_project }
it 'sets GitLab project id' do
expect(values).to match(/GITLAB_PROJECT_ID: '?#{project.id}/)