2019-04-15 06:17:05 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-15 03:53:28 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe Projects::PipelinesSettingsController do
|
|
|
|
set(:user) { create(:user) }
|
|
|
|
set(:project_auto_devops) { create(:project_auto_devops) }
|
|
|
|
let(:project) { project_auto_devops.project }
|
|
|
|
|
|
|
|
before do
|
2018-07-11 10:36:08 -04:00
|
|
|
project.add_maintainer(user)
|
2017-09-15 03:53:28 -04:00
|
|
|
|
|
|
|
sign_in(user)
|
|
|
|
end
|
|
|
|
|
2018-03-22 10:31:41 -04:00
|
|
|
describe 'GET show' do
|
|
|
|
it 'redirects with 302 status code' do
|
2018-12-17 17:52:17 -05:00
|
|
|
get :show, params: { namespace_id: project.namespace, project_id: project }
|
2017-11-17 11:24:40 -05:00
|
|
|
|
2018-03-22 10:31:41 -04:00
|
|
|
expect(response).to have_gitlab_http_status(302)
|
2017-09-15 03:53:28 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|