Removed options from the gear button in the projects and consolidated into one

Added test for the CiCdPipelinesController
This commit is contained in:
Jose Ivan Vargas 2017-01-06 16:37:30 -06:00
parent 0d4c0e07cb
commit e4b345ca4c
2 changed files with 22 additions and 14 deletions

View file

@ -18,20 +18,8 @@
Protected Branches
- if @project.feature_available?(:builds, current_user)
= nav_link(controller: :runners) do
= link_to namespace_project_runners_path(@project.namespace, @project), title: 'Runners' do
%span
Runners
= nav_link(controller: :variables) do
= link_to namespace_project_variables_path(@project.namespace, @project), title: 'Variables' do
%span
Variables
= nav_link(controller: :triggers) do
= link_to namespace_project_triggers_path(@project.namespace, @project), title: 'Triggers' do
%span
Triggers
= nav_link(controller: :pipelines_settings) do
= link_to namespace_project_pipelines_settings_path(@project.namespace, @project), title: 'CI/CD Pipelines' do
= nav_link(controller: :ci_cd_pipelines_settings) do
= link_to namespace_project_settings_ci_cd_pipelines_path(@project.namespace, @project), title: 'CI/CD Pipelines' do
%span
CI/CD Pipelines
= nav_link(controller: :pages) do

View file

@ -0,0 +1,20 @@
require('spec_helper')
describe Projects::Settings::CiCdPipelinesController do
let(:project) { create(:empty_project, :public, :access_requestable) }
let(:user) { create(:user) }
before do
project.team << [user, :master]
sign_in(user)
end
describe 'GET show' do
it 'renders show with 200 status code' do
get :show, namespace_id: project.namespace, project_id: project
expect(response).to have_http_status(200)
expect(response).to render_template(:show)
end
end
end