Permalink
Browse files

Switch to Thin from Webrick as it seems to play more nicely with Daem…

…ons.
  • Loading branch information...
lukeredpath committed Mar 11, 2012
1 parent 9a3734d commit 319b83e2464e1815e1a1fa9f06b169f9efabc011
Showing with 3 additions and 2 deletions.
  1. +1 −0 Rakefile
  2. +1 −1 lib/mimic.rb
  3. +1 −1 spec/fake_host_spec.rb
View
@@ -47,6 +47,7 @@ spec = Gem::Specification.new do |s|
# relevant versions
s.add_dependency("rack")
s.add_dependency("sinatra")
+ s.add_dependency("thin")
s.add_dependency("json")
s.add_dependency("plist")
View
@@ -59,7 +59,7 @@ def serve(app, options)
end
def start_service(app, options)
- Rack::Handler::WEBrick.run(app.url_map, {
+ Rack::Handler::Thin.run(app.url_map, {
:Port => options[:port],
:Logger => logger,
:AccessLog => logger,
View
@@ -76,7 +76,7 @@
describe "StubbedRequest" do
it "has a unique hash based on it's parameters" do
host = Mimic::FakeHost::StubbedRequest.new(stub, "GET", "/path")
- host.to_hash.should == Digest::MD5.digest("GET /path")
+ host.to_hash.should == Digest::MD5.hexdigest("GET /path")
end
it "has the same hash as an equivalent request" do

0 comments on commit 319b83e

Please sign in to comment.