Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (20 sloc) 543 Bytes
require File.expand_path('../helper', __FILE__)
class ApoioTest < Service::TestCase
def setup
@stubs = Faraday::Adapter::Test::Stubs.new
end
def test_push
@stubs.post "/service/github" do |env|
assert_equal 'test.apo.io', env[:url].host
assert_equal "my123token", env[:request_headers]["X-Api-Token"]
[200, {}, '']
end
svc = service(
{'subdomain' => 'test', 'token' => 'my123token' },
payload)
svc.receive_issues
end
def service(*args)
super Service::Apoio, *args
end
end