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