Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (18 sloc) 0.451 kb
require File.expand_path('../helper', __FILE__)
class LeantoTest < Service::TestCase
def setup
@stubs = Faraday::Adapter::Test::Stubs.new
end
def test_push
url = "/api/abc/commit"
@stubs.post url do |env|
assert_equal "payload=%22payload%22", env[:body]
[200, {}, '']
end
svc = service :push, {'token' => 'abc'}, 'payload'
svc.receive
end
def service(*args)
super Service::Leanto, *args
end
end
Jump to Line
Something went wrong with that request. Please try again.