How i can write spec for already existing model???? i need to write the test cases for already existing model...... -- Posted via http://www.ruby-forum.com/.
On Wed, Apr 22, 2009 at 9:03 AM, Shakthi Murugan <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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
Hi, Any one help me to write test cases using rspec.... send some related links that contains basic steps or some sample application test cases... -- Posted via http://www.ruby-forum.com/.
The rspec site has good documentation: http://rspec.info/documentation/ But I would suggest you read other people''s code and buy the rspec book (currently in beta). If you had any specific issue we might be able to help. On Apr 22, 6:06 am, Shakthi Murugan <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi, > > Any one help me to write test cases using rspec.... send some related > links that contains basic steps or some sample application test cases... > -- > Posted viahttp://www.ruby-forum.com/.