standard-library / microform

Tiny form object pattern for Rails
MIT License
0 stars 0 forks source link

Add check that a form was submitted at all to assert_submits #14

Closed jackjennings closed 7 years ago

jackjennings commented 7 years ago

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.