0
0
zero/spec/spec_helper.rb

15 lines
248 B
Ruby
Raw Normal View History

2012-10-14 00:21:44 +02:00
require 'zero/all'
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