Skip to content

Instantly share code, notes, and snippets.

@ajvondrak
Last active May 26, 2016 21:16
Show Gist options
  • Save ajvondrak/e72726e947b1db9387541369ec3b389e to your computer and use it in GitHub Desktop.
Save ajvondrak/e72726e947b1db9387541369ec3b389e to your computer and use it in GitHub Desktop.
Goliath dependencies
class API < Goliath::API
def response(env)
[200, {}, 'OK']
end
end
source 'https://rubygems.org'
gem 'minitest', group: :test
gem 'goliath',
git: '[email protected]:postrank-labs/goliath.git',
ref: '1aeb2ae7e6d95a79897fda8d65bcdd4318336c53'
gem 'em-http-request' # required, but not declared...?
gem 'eventmachine', '1.0.9.1' if ENV['LOCK_EM_VERSION']
require 'minitest/autorun'
require 'goliath/test_helper'
require_relative 'api'
class Test < Minitest::Test
include Goliath::TestHelper
def test_reproducing_em_dependency_issue
with_api(API) do
get_request do |http|
assert http.response == 'OK'
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment