Hi blasterpal,
First I should thank you for the quick response.

I am not using scaffolding to create controllers and models. So i dont have
test files for them. But I used scaffolding just to try it. I am aware of
how those test files are like.

But if I have to write a unit test case for a existing controller, how
should I start with. Should I proceed method by method. Can we be specific
for a method to write a test case. Like, can we just analyze a function in
the model, testing it for its inputs and outputs etc.


-sumanth.

On Wed, Nov 26, 2008 at 6:41 PM, blasterpal <[EMAIL PROTECTED]> wrote:

>
> Hello,
>
> If you are using scaffolding to create your models and controllers
> then you have the test files for each model and controller already
> created within "test" directory.
>
> Thie rails wiki is always a good starting point:
>
> http://wiki.rubyonrails.org/rails/pages/HowtoUnitTest
>
> Hank
>
> On Nov 26, 7:46 am, sumanth <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I've been working on ROR just for 4 months. I am naive in writing test
> > cases. I heard that one has to start with unit tests. So, I am
> > confused to where and how to start with. Any materials available or
> > any guides which helps me with some examples also.
> >
> > Thanks in advance
> > sumanth
> >
>

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