0
0
zero/spec/spec_helper.rb
Gibheer 79537632ac added new router to the tools
This small router is intended to work like URLMap, but with the feature
that it can extract variables from routes.
2012-10-13 11:48:11 +02:00

15 lines
244 B
Ruby

require 'zero'
class SpecApp
attr_reader :env
def call(env)
@env = env
return [200, {'Content-Type' => 'text/html'}, ['success']]
end
end
def generate_env(path, options = {})
Rack::MockRequest.env_for(path, options = {})
end