2019-04-15 06:17:05 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-15 03:53:28 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-03 14:08:28 -04:00
|
|
|
RSpec.describe Projects::PipelinesSettingsController do
|
2019-10-01 20:06:26 -04:00
|
|
|
let_it_be(:user) { create(:user) }
|
|
|
|
let_it_be(:project_auto_devops) { create(:project_auto_devops) }
|
2021-04-06 05:09:03 -04:00
|
|
|
|
2017-09-15 03:53:28 -04:00
|
|
|
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
|
|
|
|
2020-01-28 07:08:44 -05:00
|
|
|
expect(response).to have_gitlab_http_status(:found)
|
2017-09-15 03:53:28 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|