Jay Levitt
2006-Nov-06 02:32 UTC
[rspec-users] Integration testing: coupling of get and post on forms
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
David Chelimsky
2006-Nov-06 02:49 UTC
[rspec-users] Integration testing: coupling of get and post on forms
On 11/5/06, Jay Levitt <lists-rspec at shopwatch.org> wrote:> This is such a vague request it''s not even worthy of a ticket, but:This is completely worthy of a ticket. Please feel free to raise one.> > 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 > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >