Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test_hook_service_spec.rb « services « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f99fd8434c229530559095223d17545233c15bab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'spec_helper'

describe TestHookService, services: true do
  let(:user)    { create(:user) }
  let(:project) { create(:project, :repository) }
  let(:hook)    { create(:project_hook, project: project) }

  describe '#execute' do
    it "executes successfully" do
      stub_request(:post, hook.url).to_return(status: 200)
      expect(TestHookService.new.execute(hook, user)).to be_truthy
    end
  end
end