Re: [rspec-users] How to Spec a Module to be used in a Controller

2008-10-24 Thread Matt Wynne
On 23 Oct 2008, at 14:49, Pat Maddox wrote: Matt Wynne <[EMAIL PROTECTED]> writes: Is this how other people do this? Is there a trick that I'm missing? Yeah, it's kind of a bummer, just something you have to deal with cause of Rails. What I do is set up a default route, you know the old-

Re: [rspec-users] How to Spec a Module to be used in a Controller

2008-10-24 Thread Matt Wynne
On 23 Oct 2008, at 13:51, Stephen Eley wrote: On Thu, Oct 23, 2008 at 7:00 AM, Matt Wynne <[EMAIL PROTECTED]> wrote: This is working OK, but I'm struggling with the routing so that I can use the integration session #get method to spin up my FakeController. Is that strictly necessary? Yo

Re: [rspec-users] How to Spec a Module to be used in a Controller

2008-10-23 Thread Pat Maddox
Matt Wynne <[EMAIL PROTECTED]> writes: > I want to be able to factor out bits of a controller's behaviour into > modules, and spec them independently. E.g. modules like Authentication > and ExceptionHandling that are mixed into ApplicationController. > > In my spec, I create a FakeController class

Re: [rspec-users] How to Spec a Module to be used in a Controller

2008-10-23 Thread Stephen Eley
On Thu, Oct 23, 2008 at 7:00 AM, Matt Wynne <[EMAIL PROTECTED]> wrote: > > This is working OK, but I'm struggling with the routing so that I can use > the integration session #get method to spin up my FakeController. Is that strictly necessary? Your fake controller's never going to get routed to