Created
April 26, 2013 04:32
-
-
Save nolman/5465050 to your computer and use it in GitHub Desktop.
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 :rubygems | |
# bundle && bundle exec rspec web_spec.rb # will not hang | |
#gem "goliath", :git => "[email protected]:postrank-labs/goliath.git", :ref => "a8e3cbb87602ea2ec39fc350842d42bece14df68" | |
# bundle && bundle exec rspec web_spec.rb will hang | |
gem "goliath", :git => "[email protected]:postrank-labs/goliath.git", :ref => "671be754e5ee63a3c1bc230d02c781fab7d3935b" | |
gem "em-http-request" | |
group :test do | |
gem "rspec" | |
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
require 'rubygems' | |
require 'bundler' | |
Bundler.setup | |
require 'goliath' | |
class Web < Goliath::API | |
def response(env) | |
[200, {}, ""] | |
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
require 'rspec' | |
require './web' | |
require 'goliath/test_helper' | |
describe Web do | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment