Thanks for the replies, fellas.  I've moved the code into my Model.
Thanks again.

On Jan 31, 11:33 am, Rob Lacey <r...@mail.pigdestroyer.co.uk> wrote:
> Agreed its easier to test models, or at least I find it easier. I'd say
> that its a fortunate side effect though, rather than a reason to test in
> a certain way. Although I guess if it really is too hard to test any
> part of your app then you're probably trying to solve the problem in the
> wrong way. I never test my views to be honest, it seems that its going
> just a step too far and it tends to be fairly fragile at that.
>
> RobL
>
>  > I prefer to say that like: Put the code where it's easiest to test.
>  > Models are easier to test than controllers, so put the most business
> logic there. Views are hardest to test, so put lots of untestable art there!
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to