Re: [rspec-users] Testing controller plugin

2010-02-08 Thread Phillip Koebbe
David Chelimsky wrote: The problem I've run into in trying to spec controller extensions in isolation is that Rails controllers are not self-contained objects: they need a bunch of surrounding state set up for them to work properly. The testing facilities that ship with Rails hide that all from y

Re: [rspec-users] Testing controller plugin

2010-02-08 Thread Matt Wynne
On 8 Feb 2010, at 16:53, David Chelimsky wrote: On Mon, Feb 8, 2010 at 11:58 AM, Phillip Koebbe > wrote: Matt Wynne wrote: Yeah, you need to convince RSpec that the describe blocks you're using are describing an ExampleGroup that's about a Rails Controller, then it will mix in the right

Re: [rspec-users] Testing controller plugin

2010-02-08 Thread David Chelimsky
On Mon, Feb 8, 2010 at 11:58 AM, Phillip Koebbe wrote: > Matt Wynne wrote: >> >> Yeah, you need to convince RSpec that the describe blocks you're using are >> describing an ExampleGroup that's about a Rails Controller, then it will mix >> in the right methods for you. I think you can do something

Re: [rspec-users] Testing controller plugin

2010-02-08 Thread Phillip Koebbe
Matt Wynne wrote: Yeah, you need to convince RSpec that the describe blocks you're using are describing an ExampleGroup that's about a Rails Controller, then it will mix in the right methods for you. I think you can do something like: describe MySpecialTestController, :type => :controller d

Re: [rspec-users] Testing controller plugin

2010-02-08 Thread Matt Wynne
On 8 Feb 2010, at 02:34, Phillip Koebbe wrote: Matt Wynne wrote: On 1 Feb 2010, at 15:14, Phillip Koebbe wrote: I have just recently started creating some plugins, mainly of the controller variety. I have been looking for a tutorial or other documentation detailing how to go about testi

Re: [rspec-users] Testing controller plugin

2010-02-07 Thread Phillip Koebbe
Matt Wynne wrote: On 1 Feb 2010, at 15:14, Phillip Koebbe wrote: I have just recently started creating some plugins, mainly of the controller variety. I have been looking for a tutorial or other documentation detailing how to go about testing these plugins with RSpec, but have not yet found

Re: [rspec-users] Testing controller plugin

2010-02-01 Thread Matt Wynne
On 1 Feb 2010, at 15:14, Phillip Koebbe wrote: I have just recently started creating some plugins, mainly of the controller variety. I have been looking for a tutorial or other documentation detailing how to go about testing these plugins with RSpec, but have not yet found anything helpful

[rspec-users] Testing controller plugin

2010-02-01 Thread Phillip Koebbe
I have just recently started creating some plugins, mainly of the controller variety. I have been looking for a tutorial or other documentation detailing how to go about testing these plugins with RSpec, but have not yet found anything helpful. Can anyone point me toward such a thing? Thanks,