I realized that the assert_submits test helper doesn't fail if no form is submitted at all.
This potentially opens up a false positive where the call to submit is removed from the controller
action, or the call is circumvented by an erroneous conditional branch, which should break a test
that asserts that a certain form is actually submitted.
I realized that the
assert_submits
test helper doesn't fail if no form is submitted at all. This potentially opens up a false positive where the call tosubmit
is removed from the controller action, or the call is circumvented by an erroneous conditional branch, which should break a test that asserts that a certain form is actually submitted.