Just this case missing in a few places:

```ruby
assert_equal ({ foo: "omg" }), errors.messages
# to
assert_equal({ foo: "omg" }, errors.messages)
```