Commit 84890f2d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Add project to jupyter cluster app factory spec

Signed-off-by: default avatarDmitriy Zaporozhets <>
parent b3ce60aa3a1e
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
factory :clusters_applications_jupyter, class: Clusters::Applications::Jupyter do factory :clusters_applications_jupyter, class: Clusters::Applications::Jupyter do
oauth_application factory: :oauth_application 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 end
end end
...@@ -114,11 +114,7 @@ ...@@ -114,11 +114,7 @@
end end
context 'when cluster belongs to a project' do context 'when cluster belongs to a project' do
let(:project) { create(:project) } let(:project) { application.cluster.first_project }
before do
application.cluster.projects << project
it 'sets GitLab project id' do it 'sets GitLab project id' do
expect(values).to match(/GITLAB_PROJECT_ID: '?#{}/) expect(values).to match(/GITLAB_PROJECT_ID: '?#{}/)
Supports Markdown
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