gitlab-org--gitlab-foss/spec/controllers/projects/hooks_controller_spec.rb

22 lines
461 B
Ruby
Raw Normal View History

2017-07-20 11:12:06 -04:00
require 'spec_helper'
describe Projects::HooksController do
let(:project) { create(:project) }
2017-07-20 11:12:06 -04:00
let(:user) { create(:user) }
before do
project.add_master(user)
2017-07-20 11:12:06 -04:00
sign_in(user)
end
describe '#index' do
it 'redirects to settings/integrations page' do
get(:index, namespace_id: project.namespace, project_id: project)
expect(response).to redirect_to(
project_settings_integrations_path(project)
)
end
end
end