Last active
May 26, 2016 21:16
-
-
Save ajvondrak/e72726e947b1db9387541369ec3b389e to your computer and use it in GitHub Desktop.
Goliath dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class API < Goliath::API | |
def response(env) | |
[200, {}, 'OK'] | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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