Skip to content

Commit

Permalink
Different approach to Mongrel#run testing
Browse files Browse the repository at this point in the history
darcs-hash:20070516150118-4fc50-b8b422169800361873603f234ea3c9d7634069be.gz
  • Loading branch information
leahneukirchen committed May 16, 2007
1 parent 230d62c commit 046be71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/spec_rack_mongrel.rb
Expand Up @@ -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

Expand Down

0 comments on commit 046be71

Please sign in to comment.