Permalink
Browse files

use thin for specs

  • Loading branch information...
1 parent ca796e1 commit c86ae1811feb6a583f8783846b9f26502ab7630a Emmanuel Oga committed Oct 26, 2011
Showing with 8 additions and 5 deletions.
  1. +3 −1 firering.gemspec
  2. +3 −2 spec/fixtures/load_server.rb
  3. +2 −2 spec/fixtures/retrieve.rb
View
@@ -27,8 +27,10 @@ Gem::Specification.new do |s|
s.add_dependency('em-http-request', ["~> 0.3.0"])
s.add_dependency('yajl-ruby', ["~> 0.7.6"])
- s.add_development_dependency('rspec', ["~> 2.1.0"])
+ s.add_development_dependency('rspec', ["~> 2.6.0"])
s.add_development_dependency('rack', [">= 1.2.0"])
+ s.add_development_dependency('thin', ["~> 1.2.0"])
+ s.add_development_dependency('rake')
# = MANIFEST =
s.files = %w[
@@ -19,8 +19,8 @@ def call(env)
res.write("OK")
else
if @fails > 0
- log_hi("I was requested to fail, fails left: #{ @fails }")
@fails -= 1
+ log_hi("I was requested to fail, fails left: #{ @fails }")
res.write("")
res.status = 404
else
@@ -77,6 +77,7 @@ def fixture_path(req)
def start_fixtures_server(port)
pid = fork do
require 'rack'
+ require 'thin'
require 'logger'
$stdout = $stderr = File.open("/dev/null", "w")
@@ -88,7 +89,7 @@ def start_fixtures_server(port)
app = Rack::ShowStatus.new(Rack::ShowExceptions.new(app))
app = Rack::CommonLogger.new(app, logger)
- Rack::Handler::WEBrick.run app, :Port => $specs_port
+ Rack::Handler::Thin.run app, :Port => $specs_port
end
spawned, start = false, Time.now
@@ -3,8 +3,8 @@
require 'shellwords'
require 'fileutils'
-HOST = "broadspire"
-TOKEN = "90454e67ebe1e202034a49266cc0abf0de7e538e"
+HOST = "HOST"
+TOKEN = "TOKEN"
Dir["{json,headers}/*"].each { |f| FileUtils.rm f }

0 comments on commit c86ae18

Please sign in to comment.