summaryrefslogtreecommitdiff
path: root/spec/controllers/projects/hooks_controller_spec.rb
blob: 07174660f4608ea07c1b7f5516580e45e103e89a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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