Ruby on Rails testing: How can I test or at the very least see a form_for's error_messages_for?
Posted
by williamjones
on Stack Overflow
See other posts from Stack Overflow
or by williamjones
Published on 2010-03-09T00:13:00Z
Indexed on
2010/03/09
0:36 UTC
Read the original article
Hit count: 335
ruby-on-rails
|form-for
|error-messages-for
|integration-testing
|functional-testing
I'm working on creating a tests, and I can't figure out why the creation of a model from a form_for is failing in the test but works in real browsers. Is there a straightforward way for me to see what the problems are in the model creation?
Even better would be, is there a straightforward way for me to test the error outputs that I access via error_messages_for? In that case, I'd like to also add in tests that make sure that malformed forms are outputting the correct errors.
© Stack Overflow or respective owner