diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2018-10-02 05:50:48 +0300 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2018-10-06 00:11:16 +0300 |
commit | 7b8b2563c4d6b0090fd33fd50aad81561519f9cd (patch) | |
tree | 9833d906cbccaeeb07063bdbfb72378ebee29bc4 /spec/controllers/admin | |
parent | 1a90632cc9555d06edfa3a86808ab65f47558be9 (diff) |
Prepare admin/projects/show view to allow EE specific feature
In EE it will render a Geo Status widget when Geo is enabled and it is
in a secondary node.
Also added minimal specs to that action.
Diffstat (limited to 'spec/controllers/admin')
-rw-r--r-- | spec/controllers/admin/projects_controller_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/controllers/admin/projects_controller_spec.rb b/spec/controllers/admin/projects_controller_spec.rb index cc200b9fed9..ee1aff09bdf 100644 --- a/spec/controllers/admin/projects_controller_spec.rb +++ b/spec/controllers/admin/projects_controller_spec.rb @@ -42,4 +42,15 @@ describe Admin::ProjectsController do expect { get :index }.not_to exceed_query_limit(control_count) end end + + describe 'GET /projects/:id' do + render_views + + it 'renders show page' do + get :show, namespace_id: project.namespace.path, id: project.path + + expect(response).to have_gitlab_http_status(200) + expect(response.body).to match(project.name) + end + end end |