Skip to content

Commit

Permalink
Remove Plug warning
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Apr 23, 2022
1 parent 1dbc2f1 commit 2b5556f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test/phoenix/router/helpers_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ defmodule Phoenix.Router.HelpersTest do
get "/posts/file/*file", PostController, :file
get "/posts/skip", PostController, :skip, as: nil

get "/chat*js_route", ChatController, :show

resources "/users", UserController do
resources "/comments", CommentController do
resources "/files", FileController
Expand Down Expand Up @@ -161,11 +159,6 @@ defmodule Phoenix.Router.HelpersTest do
assert Helpers.post_path(__MODULE__, :file, ["foo", "bar"], []) == "/posts/file/foo/bar"
assert Helpers.post_path(__MODULE__, :file, ["foo", "bar baz"], []) == "/posts/file/foo/bar%20baz"

assert Helpers.chat_path(__MODULE__, :show, ["chat"]) == "/chat"
assert Helpers.chat_path(__MODULE__, :show, ["chat", "foo"]) == "/chat/foo"
assert Helpers.chat_path(__MODULE__, :show, ["chat/foo"]) == "/chat%2Ffoo"
assert Helpers.chat_path(__MODULE__, :show, ["chat/foo", "bar/baz"]) == "/chat%2Ffoo/bar%2Fbaz"

assert Helpers.top_path(__MODULE__, :top) == "/posts/top"
assert Helpers.top_path(__MODULE__, :top, id: 5) == "/posts/top?id=5"
assert Helpers.top_path(__MODULE__, :top, %{"id" => 5}) == "/posts/top?id=5"
Expand Down

0 comments on commit 2b5556f

Please sign in to comment.