octokit / go-octokit

Simple Go wrapper for the GitHub API
https://github.com/octokit/go-octokit
MIT License
258 stars 79 forks source link

HTTP stub helpers #80

Closed pengwynn closed 9 years ago

pengwynn commented 9 years ago

Inspired by Octokit.rb's stub helpers, this is a work-in-progress proof-of-concept for removing some noise from our tests. We can have our :cake: and eat it, too, because you can always do the more verbose approach if you need to.

Before we get too far, I wanted to see what @jingweno thinks of the approach.

/cc @obsc @dhruvsinghal @dhs252

owenthereal commented 9 years ago

@pengwynn :+1: Good refactoring! So much DRYer.