Skip to content

Commit

Permalink
Remove obsolete test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija authored Dec 4, 2024
1 parent c086cbb commit 0b5191d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions spec/context_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,6 @@ describe "Context" do
("UTF-8".in? client_response.headers["Content-Type"]).should be_true
end

it "encodes json in utf-8" do
http_handler = Grip::Routers::Http.new
http_handler.add_route "GET", "/", ExampleController.new, [:none], ->(context : HTTP::Server::Context) do
context.json({:message => "👋🏼 grip"}).halt
end

request = HTTP::Request.new("GET", "/")
client_response = call_request_on_app(request, http_handler)
client_response.body.should eq "{\"message\":\"👋🏼 grip\"}"
("UTF-8".in? client_response.headers["Content-Type"]).should be_true
end

it "encodes html in utf-8" do
http_handler = Grip::Routers::Http.new
http_handler.add_route "GET", "/", ExampleController.new, [:none], ->(context : HTTP::Server::Context) do
Expand Down

0 comments on commit 0b5191d

Please sign in to comment.