form-test-helper has gone on to a better placeform-test-helper was first released in September of 2006. At the time, it represented a significant step forward in testing apps with the full rails stack. I haven't updated it in quite some time, and I'm happy to see that some other tools came along and built on form-test-helper's ideas. Go check out webrat and read The Rspec Book to learn about the latest Rails tools in this vein. -- Jason Garber
---
This plugin uses assert_select to verify and manipulate your forms. It solves the problem we've all run into where you change the form but the test doesn't break because you're just passing parameters to an action.
Instead of this: post :create, :book => {:name => 'Pickaxe', :category => 1, :out_of_print => 0}
This plugin lets you do this:
get :new
submit_form do |form|
form.book.name = 'Pickaxe'
form.book.category = 'Programming'
form.book.out_of_print.uncheck
end
assert_response :successSee the README file for more examples.
InstallationTo install for Rails Edge (revisions 7420 and higher) use trunk:./script/plugin install -x http://form-test-helper.googlecode.com/svn/form_test_helper/
Requires Rails trunk revision 7420 and higher
To install for Rails Edge where the edge revision ranges from 6764 to 7420 use the 1.1.1 tag:./script/plugin install http://form-test-helper.googlecode.com/svn/tags/form_test_helper-1.1.1
Requires a Rails Edge revision inside of the range of 6764 and 7420)
To install for Rails 1.2.x use the 1.0.0 tag:./script/plugin install http://form-test-helper.googlecode.com/svn/tags/form_test_helper-1.0.1
Requires Rails 1.2.x and higher (up to Rails Edge revision 6763)
RdocRdoc documentation for each "branch" are being hosted at rubyforge.
For form_test_helper edge: http://continuous.rubyforge.org/form_test_helper/rdoc/
For form_test_helper 1.1.x: http://continuous.rubyforge.org/form_test_helper-1.1.x/rdoc/
For form_test_helper 1.0.x: http://continuous.rubyforge.org/form_test_helper-1.0.x/rdoc/
Ohloh computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Ohloh cannot perform this analysis
Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Ohloh can generate statistics! It's fast and easy - try it and see!
Copyright
©
2013
Black Duck Software, Inc.
and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a
Creative Commons Attribution 3.0 Unported License
. Ohloh
®
and the Ohloh logo are trademarks of
Black Duck Software, Inc.
in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.