Sha256: 8770b71c6e7233db011814244c3a84a449abb019c8cdd0c8e8c26ad62617070d
Contents?: true
Size: 727 Bytes
Versions: 5
Compression:
Stored size: 727 Bytes
Contents
require File.join(File.dirname(__FILE__), 'CONFIG.rb') require 'test/unit' require 'nitro/server' class TC_Server < Test::Unit::TestCase # :nodoc: all include Nitro class RootController end class UsersController end class TestController end class DeepController end def test_all srv = Server.new('test') srv.root = RootController srv.root.users = UsersController srv.root.test = TestController srv.root.really.really.deep = DeepController assert_equal RootController, srv.map['/'] assert_equal UsersController, srv.map['/users'] assert_equal TestController, srv.map['/test'] assert_equal DeepController, srv.map['/really/really/deep'] end end
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
nitro-0.41.0 | test/nitro/tc_server.rb |
nitro-0.30.0 | test/nitro/tc_server.rb |
nitro-0.31.0 | test/nitro/tc_server.rb |
nitro-0.40.0 | test/nitro/tc_server.rb |
raw-0.49.0 | test/nitro/tc_server.rb |