Mon
6
Mar '06
Useful test for Rails functional tests
by Frank Spychalski filed under Rails, Ruby, Work

Evil folks and stupid users expose webapplications to requests no sane developer usually expects. To find methods that cannot cope with unexpected input I added a simple test to my current Ruby on Rails project. The test calls all public actions via all http actions and uses some dummy parameters. There are no assertions in this test, because I don’t know if an action should succeed or redirect. The only thing checked with this test is that the action does not fail.

Technorati Tags: , ,


2 Responses to “Useful test for Rails functional tests”

  1. 1

    quite a useful test, thanks for the post

    Joshua (April 11th, 2007 at 08:49)
  2. 2

    Pretty slick. I like it.

    Brian McQuay (August 17th, 2007 at 03:52)

Any comments? Or questions? Just leave a Reply: