Skip to content

Commit 0b5191d

Browse files
authored
Remove obsolete test
1 parent c086cbb commit 0b5191d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

spec/context_spec.cr

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,6 @@ describe "Context" do
8080
("UTF-8".in? client_response.headers["Content-Type"]).should be_true
8181
end
8282

83-
it "encodes json in utf-8" do
84-
http_handler = Grip::Routers::Http.new
85-
http_handler.add_route "GET", "/", ExampleController.new, [:none], ->(context : HTTP::Server::Context) do
86-
context.json({:message => "👋🏼 grip"}).halt
87-
end
88-
89-
request = HTTP::Request.new("GET", "/")
90-
client_response = call_request_on_app(request, http_handler)
91-
client_response.body.should eq "{\"message\":\"👋🏼 grip\"}"
92-
("UTF-8".in? client_response.headers["Content-Type"]).should be_true
93-
end
94-
9583
it "encodes html in utf-8" do
9684
http_handler = Grip::Routers::Http.new
9785
http_handler.add_route "GET", "/", ExampleController.new, [:none], ->(context : HTTP::Server::Context) do

0 commit comments

Comments
 (0)