connectapi icon indicating copy to clipboard operation
connectapi copied to clipboard

test: Don't expect_error() without asserting the message

Open nealrichardson opened this issue 9 months ago • 0 comments

I fixed one issue recently where there was a syntax error in the error message construction, so instead of showing the expected message, it was showing a string interpolation error. But the test we had for that case was just doing expect_error(), so it was passing. We should generally assert something about the error message so that we know the expected error is happening.

nealrichardson avatar Apr 29 '24 17:04 nealrichardson