Sha256: 971b030b5bf502908742462fe714b54e8169ec7bf89a6c8a8071a17b119dec0e
Contents?: true
Size: 736 Bytes
Versions: 3
Compression:
Stored size: 736 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), '..', '..', 'lib') 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.21.0 | test/nitro/tc_server.rb |
nitro-0.21.2 | test/nitro/tc_server.rb |
nitro-0.22.0 | test/nitro/tc_server.rb |