[rspec-users] can't seem to test redirect?

Matt Wynne matt at mattwynne.net
Fri Oct 24 17:04:45 EDT 2008

On 24 Oct 2008, at 21:57, Harry Bishop wrote:
> Harry Bishop wrote:
>>    response.should redirect_to(@motion)

What is this Motion? is it really something that you can redirect  
people to? Maybe you meant redirect_to(url_for(@motion))?

> private method `split' called for #<Motion:0x2259944>.

My guess is that this is rails / rspec-rails trying to make a URL out  
of your Motion instance. These path method errors are often rather  

More information about the rspec-users mailing list