lib/jellyfish/test.rb in jellyfish-1.0.2 vs lib/jellyfish/test.rb in jellyfish-1.1.0

- old
+ new

@@ -7,18 +7,18 @@ Pork::Executor.__send__(:include, Muack::API) copy :jellyfish do module_eval(%w[options get head post put delete patch].map{ |method| <<-RUBY - def #{method} path='/', app=app, env={} + def #{method} path='/', a=app, env={} File.open(File::NULL) do |input| - app.call({'PATH_INFO' => path , - 'REQUEST_METHOD' => '#{method}'.upcase, - 'SCRIPT_NAME' => '' , - 'rack.input' => input , - 'rack.url_scheme'=> 'https' , - 'SERVER_NAME' => 'localhost' , - 'SERVER_PORT' => '8080'}.merge(env)) + a.call({'PATH_INFO' => path , + 'REQUEST_METHOD' => '#{method}'.upcase, + 'SCRIPT_NAME' => '' , + 'rack.input' => input , + 'rack.url_scheme'=> 'https' , + 'SERVER_NAME' => 'localhost' , + 'SERVER_PORT' => '8080'}.merge(env)) end end RUBY }.join("\n")) end