Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (19 sloc) 0.541 kB
require File.expand_path('../helper', __FILE__)
class PuppetLinterTest < Service::TestCase
def setup
@stubs = Faraday::Adapter::Test::Stubs.new
end
def test_push
url = '/api/v1/hook'
@stubs.post url do |env|
assert_equal 'www.puppetlinter.com', env[:url].host
assert_equal 'application/x-www-form-urlencoded', env[:request_headers]['Content-Type']
[200, {}, '']
end
svc = service(:push, payload)
svc.receive_push
end
def service(*args)
super Service::PuppetLinter, *args
end
end
Jump to Line
Something went wrong with that request. Please try again.