[rspec-users] params are making my "should redirect_to" test fail - why??

Rick DeNatale rick.denatale at gmail.com
Thu Feb 14 10:55:18 EST 2008


On Thu, Feb 14, 2008 at 10:32 AM, David Chelimsky <dchelimsky at gmail.com> wrote:
> On Thu, Feb 14, 2008 at 10:16 AM, Max Williams
>
> <toastkid.williams at gmail.com> wrote:
>
> > I'm new to rspec (and coding in general) but would it break a lot of
>  > people's tests if redirect_to was changed to do this by default?  It's what
>  > i expected it to do, personally, that is to pass if the given :action and
>  > :controller match up.  If i pass a url string, and it's missing the params,
>  > then it seems fair that it should fail, but if for example i just specify a
>  > controller, and that controller is called (with any action) i'd expect it to
>  > pass as well.
>  >
>  > Like i say i'm a newb with no idea of the impact of this to existing tests
>  > :)
>
>  It is conceivable that existing examples could break, but the docs do
>  set out the same expectation that you have.
>
>  Can you file a bug at http://rspec.lighthouseapp.com so we can get it
>  in the queue?

I guess I'll hold off on the patch then.

-- 
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/


More information about the rspec-users mailing list