From c1eb749c3fc1aa6bd36e7f4937a61a2dc6c719be Mon Sep 17 00:00:00 2001 From: alkeshghorpade Date: Tue, 1 Jun 2021 21:00:13 +0530 Subject: [PATCH] Verify raised error message in test case --- actionmailbox/test/unit/router_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/actionmailbox/test/unit/router_test.rb b/actionmailbox/test/unit/router_test.rb index 7eb8e04a734..78a6c8acdc5 100644 --- a/actionmailbox/test/unit/router_test.rb +++ b/actionmailbox/test/unit/router_test.rb @@ -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