On Dec 5, 10:27 am, Colin Law <[email protected]> wrote:
> 2009/12/5 sanjanad <[email protected]>:
> > my tests are running with no errors..
>
> > but how do i check whether the functional tests i wrote are working..i
> > need please..
>
> For each test slightly change the code in your app (not the test) so
> that the test will fail, then check that it does fail.  For example to
> check an update test, comment out the code that saves the update to
> the database, the update test should then fail.
>

Maybe not helpful now, given that you've already got all this code but
next time try writing the test first. It should fail since you haven't
written the code that performs the task. Write the code and check that
the test now passes. Everytime you want to make a change write a new
test (or change an existing one if appropriate), check that it fails
and then write the code. Do this in small steps.

Fred
> Colin

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to