diff options
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..b31fe56 --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,14 @@ +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 |