Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 24 lines (18 sloc) 0.47 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
require File.expand_path('../helper', __FILE__)

class GroupTalentTest < Service::TestCase
  def setup
    @stubs = Faraday::Adapter::Test::Stubs.new
  end

  def test_push
    url = "/github/receive_push/abc"
    @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::GroupTalent, *args
  end
end

Something went wrong with that request. Please try again.