Instiki 0.16.3: Rails 2.3.0
Instiki now runs on the Rails 2.3.0 Candidate Release. Among other improvements, this means that it now automagically selects between WEBrick and Mongrel. Just run ./instiki --daemon
This commit is contained in:
parent
43aadecc99
commit
4e14ccc74d
893 changed files with 71965 additions and 28511 deletions
24
vendor/plugins/rack/test/spec_rack_handler.rb
vendored
Normal file
24
vendor/plugins/rack/test/spec_rack_handler.rb
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
require 'test/spec'
|
||||
|
||||
require 'rack/handler'
|
||||
|
||||
class Rack::Handler::Lobster; end
|
||||
class RockLobster; end
|
||||
|
||||
context "Rack::Handler" do
|
||||
specify "has registered default handlers" do
|
||||
Rack::Handler.get('cgi').should.equal Rack::Handler::CGI
|
||||
Rack::Handler.get('fastcgi').should.equal Rack::Handler::FastCGI
|
||||
Rack::Handler.get('mongrel').should.equal Rack::Handler::Mongrel
|
||||
Rack::Handler.get('webrick').should.equal Rack::Handler::WEBrick
|
||||
end
|
||||
|
||||
specify "should get unregistered handler by name" do
|
||||
Rack::Handler.get('lobster').should.equal Rack::Handler::Lobster
|
||||
end
|
||||
|
||||
specify "should register custom handler" do
|
||||
Rack::Handler.register('rock_lobster', 'RockLobster')
|
||||
Rack::Handler.get('rock_lobster').should.equal RockLobster
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue