I had to add a check box indicating that a user accepted certain terms
to a page. So, I put in a ‘validates_acceptance_of :terms’ line into
the appropriate model and added a checkbox to my view. Everything
works as expected in my web browser.
However, my functional tests still pass and I didn’t add or change
anything to them. I was expecting to have to add another field called
‘terms’ into the POST parameters for the test that tests that
particular area of code. But it’s still passing just fine.
Is there any special going on with validates_acceptance_of and
testing? Or are my tests just really bad?