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

22 lines
497 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
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-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
get :show, namespace_id: project.namespace, project_id: project
2018-03-17 18:26:18 +05:30
2018-05-09 12:01:36 +05:30
expect(response).to have_gitlab_http_status(302)
2018-03-17 18:26:18 +05:30
end
end
end