We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f046d6a commit 2b31461Copy full SHA for 2b31461
test/test_hyper_ruby.rb
@@ -35,11 +35,11 @@ def test_large_post
35
end
36
37
38
- def test_blocking
39
- with_server(-> (request) { handler_simple(request) }) do |client|
40
- gets
41
- end
42
+ # def test_blocking
+ # with_server(-> (request) { handler_simple(request) }) do |client|
+ # gets
+ # end
43
44
def with_server(request_handler, &block)
45
server = HyperRuby::Server.new
@@ -66,7 +66,7 @@ def with_server(request_handler, &block)
66
67
68
def handler_simple(request)
69
- HyperRuby::Response.new(200, { 'Content-Type' => 'text/plain' }, "ABC")
+ HyperRuby::Response.new(200, { 'Content-Type' => 'text/plain' }, request.http_method)
70
71
72
def handler_to_json(request)
0 commit comments