Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (20 sloc) 0.543 kb
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
Jump to Line
Something went wrong with that request. Please try again.