WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 2b31461

Browse files
Tweaks
1 parent f046d6a commit 2b31461

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/test_hyper_ruby.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ def test_large_post
3535
end
3636
end
3737

38-
def test_blocking
39-
with_server(-> (request) { handler_simple(request) }) do |client|
40-
gets
41-
end
42-
end
38+
# def test_blocking
39+
# with_server(-> (request) { handler_simple(request) }) do |client|
40+
# gets
41+
# end
42+
# end
4343

4444
def with_server(request_handler, &block)
4545
server = HyperRuby::Server.new
@@ -66,7 +66,7 @@ def with_server(request_handler, &block)
6666
end
6767

6868
def handler_simple(request)
69-
HyperRuby::Response.new(200, { 'Content-Type' => 'text/plain' }, "ABC")
69+
HyperRuby::Response.new(200, { 'Content-Type' => 'text/plain' }, request.http_method)
7070
end
7171

7272
def handler_to_json(request)

0 commit comments

Comments
 (0)