Skip to content

Commit

Permalink
Add :match and :dispatch plugs
Browse files Browse the repository at this point in the history
  • Loading branch information
thymusvulgaris committed Jun 24, 2024
1 parent 187d43c commit c1d9fe8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/plug/router_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,9 @@ defmodule Plug.RouterTest do
defmodule NoExpectedMatchOptions do
use Plug.Router

plug :match
plug :dispatch

match "/", foo: :bar
end
end
Expand All @@ -628,6 +631,9 @@ defmodule Plug.RouterTest do
assert_raise RuntimeError, fn ->
defmodule NoRoutes do
use Plug.Router

plug :match
plug :dispatch
end
end
end
Expand Down

0 comments on commit c1d9fe8

Please sign in to comment.