Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Different approach to Mongrel#run testing

darcs-hash:20070516150118-4fc50-b8b422169800361873603f234ea3c9d7634069be.gz
  • Loading branch information...
commit 046be71448cb048a295a5221c8636d57b3c148f3 1 parent 230d62c
@chneukirchen chneukirchen authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/spec_rack_mongrel.rb
View
6 test/spec_rack_mongrel.rb
@@ -83,13 +83,13 @@
specify "should provide a .run" do
block_ran = false
- catch(:done) {
+ Thread.new {
Rack::Handler::Mongrel.run(lambda {}, {:Port => 9211}) { |server|
- block_ran = true
server.should.be.kind_of Mongrel::HttpServer
- throw :done
+ block_ran = true
}
}
+ sleep 1
block_ran.should.be true
end
Please sign in to comment.
Something went wrong with that request. Please try again.