2017-07-20 11:12:06 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe Projects::HooksController do
|
2017-08-02 15:55:11 -04:00
|
|
|
let(:project) { create(:project) }
|
2017-07-20 11:12:06 -04:00
|
|
|
let(:user) { create(:user) }
|
|
|
|
|
|
|
|
before do
|
2017-12-22 03:18:28 -05:00
|
|
|
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
|