Function Testing

hi,

First how to start the function testing in rails…

… might be:

http://www.google.ch/search?q=ruby+on+rails+function+testing

and then the first link, or as presented here:

http://manuals.rubyonrails.com/read/book/5

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

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