Config
#get()
should return $PATH from env
should return a secret key from secrets.yml
#set()
should return new value when reseting
Engine
#env
should return Trek.env
Trek.env
#rootPath
should set a path
should get a path
#config
should return a Config instance
#paths
should return a Paths instance
should equal to #config.paths
#path
should return empty string when parent is null
#run()
should be a function
should return a promise
#*render()
should render the template
http verbs, get(), post()..., match(), all()
#match()
#all()
serve static
#index()
#favicon()
#static()
#serveDir()
services
#setService()
should set a service and return app self
#getService()
should get a service
#*loadServices()
should load all services
#context
#render()
should render template
#sendFile()
should send a file
#json()
should response with json
#jsonp()
should response with jsonp
#xhr
should return true when X-Requested-With is xmlhttprequest
Paths
#root
should return a path
#formats
should return toml|json|js|yml
toml|json|js|yml
should return an absolute path
should return app from app
app
should return an array from app/services
app/services
should return config/app.toml from config/app
config/app.toml
config/app
should return config/app.test.json from config/app.env
config/app.test.json
config/app.env
should return config/.env.test from config/.env
config/.env.test
config/.env
should return config/routes.js from config/routes
config/routes.js
config/routes
Trek
hello world
comments resources
GET /comments
POST /comments
DELETE /comments
GET /comments/new