[rspec-users] newb q: Can story steps report a view rendering error?
rick.denatale at gmail.com
Thu Apr 3 08:03:21 EDT 2008
On Wed, Apr 2, 2008 at 7:09 PM, Tim Haines <tmhaines at gmail.com> wrote:
> I have a When step that calls get game_url. It turns out that calling this
> page is resulting in a render error, which explains my failing Then steps.
> It would help me if the story told me there was a problem rendering the
> response. Is there any way to get the story steps to automatically raise an
> error if such a problem occurs?
> For now I can add response.code.should == "200" or something similar..
I can't help but think that this level would more properly be covered
by having good controller and view specs in addition to stories.
My blog on Ruby
More information about the rspec-users