gitlab-org--gitlab-foss/spec/services/test_hook_service_spec.rb
Jeroen van Baarsen 0c4a70a306 Updated rspec to rspec 3.x syntax
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2015-02-12 19:17:35 +01:00

14 lines
390 B
Ruby

require 'spec_helper'
describe TestHookService do
let (:user) { create :user }
let (:project) { create :project }
let (:hook) { create :project_hook, project: project }
describe :execute do
it "should execute successfully" do
stub_request(:post, hook.url).to_return(status: 200)
expect(TestHookService.new.execute(hook, user)).to be_truthy
end
end
end