summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
blob: b636d7534f3210748d80f8414109c4975145afa6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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