[rspec-users] newb q: Can story steps report a view rendering error?

David Chelimsky dchelimsky at gmail.com
Thu Apr 3 08:58:54 EDT 2008


On Thu, Apr 3, 2008 at 8:03 AM, Rick DeNatale <rick.denatale at gmail.com> wrote:
> On Wed, Apr 2, 2008 at 7:09 PM, Tim Haines <tmhaines at gmail.com> wrote:
>
> > Hi'ya
>  >
>  > 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.

I can't help agreeing with you Rick.

>
>  --
>  Rick DeNatale
>
>  My blog on Ruby
>  http://talklikeaduck.denhaven2.com/
>
>
> _______________________________________________
>  rspec-users mailing list
>  rspec-users at rubyforge.org
>  http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list