Try `assert_raises_regex`, it's a recent addition.