gitlab-org--gitlab-foss/spec/services/test_hook_service_spec.rb

15 lines
399 B
Ruby
Raw Normal View History

require 'spec_helper'
2015-12-09 05:55:49 -05:00
describe TestHookService, services: true do
let(:user) { create :user }
let(:project) { create :project }
let(:hook) { create :project_hook, project: project }
2016-07-11 18:12:31 -04:00
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