On Wed, Apr 22, 2009 at 9:03 AM, Shakthi Murugan
<[email protected]> wrote:
>
>  How i can write spec for already existing model???? i need to write the
> test cases for already existing model......

The same way you would for a model you don't have.

Look at the model, and identify all that it does, then write tests to
ensure that does all you assume it to do (and not do)

Andrew Timberlake
http://ramblingsonrails.com
http://www.linkedin.com/in/andrewtimberlake

"I have never let my schooling interfere with my education" - Mark Twain

--~--~---------~--~----~------------~-------~--~----~
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