debian-mirror-gitlab/spec/controllers/projects/pipelines_settings_controller_spec.rb

24 lines
555 B
Ruby
Raw Normal View History

2019-07-31 22:56:46 +05:30
# frozen_string_literal: true
2018-03-17 18:26:18 +05:30
require 'spec_helper'
describe Projects::PipelinesSettingsController do
2019-12-21 20:55:43 +05:30
let_it_be(:user) { create(:user) }
let_it_be(:project_auto_devops) { create(:project_auto_devops) }
2018-03-17 18:26:18 +05:30
let(:project) { project_auto_devops.project }
before do
2018-11-18 11:00:15 +05:30
project.add_maintainer(user)
2018-03-17 18:26:18 +05:30
sign_in(user)
end
2018-05-09 12:01:36 +05:30
describe 'GET show' do
it 'redirects with 302 status code' do
2019-02-15 15:39:39 +05:30
get :show, params: { namespace_id: project.namespace, project_id: project }
2018-03-17 18:26:18 +05:30
2020-03-13 15:44:24 +05:30
expect(response).to have_gitlab_http_status(:found)
2018-03-17 18:26:18 +05:30
end
end
end