Please sign in to comment.
Assert presence of "frozen" in error message, not the full MRI message.
Related to all the other issues regarding message independent assertions to make Rails compatible with other Ruby implementations other than MRI. The best way here would be to have a specific error raised when modifying frozen objects, like FrozenObjectError or something. But since Ruby doesn't provide such a thing, we must limit the assertion to the lowest common denominator, which is word "frozen".
- Loading branch information...
Showing with 3 additions and 1 deletion.