On 8/15/07, giles bowkett <[EMAIL PROTECTED]> wrote: > > Hi all - there's a patch I need to apply from a ticket: > > http://dev.rubyonrails.org/ticket/8798 > > The ticket appears to be stalled on the lack of a test case. I figured > I'd just whip one up, but because it's an Active Resource thing, and > the test case would need to do ModelName.find(:all), I'd need to > either mock the network connection or set one up. > > In this case setting up a mock seems kind of weak, but setting up the > net con seems kind of overbearing. > > What's recommended here?
The active resource unit tests use a mock request object for testing. -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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-core?hl=en -~----------~----~----~----~------~----~------~--~---
