Function Testing

hi,

First how to start the function testing in rails…

… might be:

ruby on rails function testing - Google Search

and then the first link, or as presented here:

Peak Obsession

marcel

I suggest picking up a book that covers testing under rails. There
are many good books. It is covered lightly in “Agile Web D.
with Rails”, but I am sure there is a testing oriented book for rails
by now.

The generators create a test for you under test/functional for each
generated controller. Each method on those classes is executed as a
test. The test can use things like “get :acton” and
“put :action, :value1…” to simulate browser actions. There are
assertions for testing the results, and the contents of the response
html.

Michael