[rspec-users] Integration testing: coupling of get and post on forms

Jay Levitt lists-rspec at shopwatch.org
Sun Nov 5 21:32:36 EST 2006


This is such a vague request it's not even worthy of a ticket, but:

When rspec does support integration testing, it'd be really nice to be 
able to do things like this plugin does for standard Rails tests:

http://www.jasongarber.com/articles/2006/10/24/easier-testing-of-forms-form_test_helper

In a nutshell, it finally closes the loop between "the empty form sent 
by a get" and "the filled-in form returned on a post".  Instead of 
blindly posting parameters, you're now actually filling in form fields 
in the tests.  Works with hidden fields and everything, too. 

It'd be nice to see rspec do something like that.

Jay Levitt



More information about the rspec-users mailing list