search for: validate_stuff

Displaying 1 result from an estimated 1 matches for "validate_stuff".

2007 Feb 14
5
FormTestHelper should change hidden fields
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...