Verify raised error message in test case

This commit is contained in:
alkeshghorpade 2021-06-01 21:00:13 +05:30
parent ee8134d6f9
commit c1eb749c3f
1 changed files with 2 additions and 1 deletions

View File

@ -140,9 +140,10 @@ module ActionMailbox
end
test "invalid address" do
assert_raises(ArgumentError) do
error = assert_raises(ArgumentError) do
@router.add_route Array.new, to: :first
end
assert_equal "Expected a Symbol, String, Regexp, Proc, or matchable, got []", error.message
end
test "single string mailbox_for" do