Permalink
Browse files

Use a Thin dependency instead of mongrel

  • Loading branch information...
1 parent b577e0c commit 3dbc7bac130085c990c7850d7e8e9becaa86fb01 @alexbartlow alexbartlow committed Jul 6, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 fake_braintree.gemspec
  2. +4 −4 lib/fake_braintree/server.rb
View
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
s.add_dependency 'i18n'
s.add_dependency 'sinatra'
s.add_dependency 'braintree', '~> 2.5'
- s.add_dependency 'mongrel', '~> 1.2.0.pre'
+ s.add_dependency 'thin'
s.add_development_dependency 'rspec', '~> 2.6.0'
s.add_development_dependency 'bourne', '~> 1.0'
@@ -1,10 +1,10 @@
require 'capybara'
require 'capybara/server'
-require 'rack/handler/mongrel'
+require 'rack/handler/thin'
class FakeBraintree::Server
def boot
- with_mongrel_runner do
+ with_thin_runner do
server = Capybara::Server.new(FakeBraintree::SinatraApp)
server.boot
ENV['GATEWAY_PORT'] = server.port.to_s
@@ -13,10 +13,10 @@ def boot
private
- def with_mongrel_runner
+ def with_thin_runner
default_server_process = Capybara.server
Capybara.server do |app, port|
- Rack::Handler::Mongrel.run(app, :Port => port)
+ Rack::Handler::Thin.run(app, :Port => port)
end
yield
ensure

0 comments on commit 3dbc7ba

Please sign in to comment.