Skip to content

Commit

Permalink
Add assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
thymusvulgaris committed Jun 25, 2024
1 parent f8993a5 commit 446ab8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/plug/router_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ defmodule Plug.RouterTest do
end

test "ArgumentError is raised when match/3 is not given :to or :do option" do
%{message: "expected one of :to or :do to be given as option"} =
assert %{message: "expected one of :to or :do to be given as option"} =
catch_error(
defmodule NoExpectedMatchOptions do
use Plug.Router
Expand All @@ -629,7 +629,7 @@ defmodule Plug.RouterTest do
end

test "RuntimeError is raised when no routes are defined" do
%{message: "no routes defined in module Plug.RouterTest.NoRoutes using Plug.Router"} =
assert %{message: "no routes defined in module Plug.RouterTest.NoRoutes using Plug.Router"} =
catch_error(
defmodule NoRoutes do
use Plug.Router
Expand Down

0 comments on commit 446ab8b

Please sign in to comment.