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