Railsoids:
FormTestHelper rules. It tests your response.body form at the same time as it triggers your action, with all the parameters in that form. This obviously improves quality.
But it took issue with this:
submit_form 'validate_stuff' do |form| form['IBhidden'] = 'validate' end
The field IBhidden is a hidden field. To be fair, FTH erred on the side of matching what a user can do. Users can't change hidden fields, so FTH threw "TypeError: Can't modify hidden field's value".
But that impairs FTH's ability to match my JavaScript, which scribbles freely on that field. So instead of making a federal case out of this, I monkey-patched FTH:
module FormTestHelper class Hidden < Field def value=(value) super(value) end end end
For FTH's next version, who's right? FTH, me, or both?