rails/rails — pull request #8398 by rmascarenhas (2012-12-02 00:37:29+00:00)
Title: Active model errors spec fixes

Just small fixes in two tests for `ActiveModel::Errors`:

* `full_messages` test was calling `to_a`. The latter just calls the former, but since there are separate tests for each, they should call the right method.

* The test for `#add` defaulting to `:invalid` was actually passing `:invalid` as an argument, and so it was not actually testing the default value.