Function Testing


First how to start the function testing in rails…

… might be:

and then the first link, or as presented here:


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


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs