Forum: Ruby on Rails Function Testing

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
5fce921aae8123ef2b6aafc4ee79a508?d=identicon&s=25 gousi (Guest)
on 2007-05-28 10:34
(Received via mailing list)

First how to start the function testing in rails..
15eb647956921a6bc9655c3513feb139?d=identicon&s=25 lanzm (Guest)
on 2007-05-28 11:40
(Received via mailing list)
.... might be:

and then the first link, or as presented here:

588ab1c0a5610a7e160a3b101abb91e6?d=identicon&s=25 MichaelLatta (Guest)
on 2007-05-28 17:05
(Received via mailing list)
I suggest picking up a book that covers testing under rails.  There
are many good books.  It is covered lightly in "Agile Web Development
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 topic is locked and can not be replied to.