mirror of https://github.com/rails/rails
Verify raised error message in test case
This commit is contained in:
parent
ee8134d6f9
commit
c1eb749c3f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue