gitlab-org--gitlab-foss/spec/controllers/projects/hooks_controller_spec.rb
2017-08-02 17:47:31 -04:00

21 lines
468 B
Ruby

require 'spec_helper'
describe Projects::HooksController do
let(:project) { create(:project) }
let(:user) { create(:user) }
before do
project.team << [user, :master]
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