Forum: Ruby on Rails Test redirect_to fails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Xilinus (Guest)
on 2006-05-25 19:16
(Received via mailing list)
Hi

I have a weird issue on functional testing
Here is the redirect I have in my controller:

     redirect_to :controller => "/param/user", :action => :edit, :id
=> @current_user.id

And here is my functional test:
	assert_redirected_to :controller => "/param/user", :action
=> :edit, :id => users(:vincent).id

And when I run test I have this error (users(:vincent).id = 4)

	response is not a redirection to all of the options supplied
(redirection is <{:controller=>"/param/user", :action=>:edit, :id=>4}
 >), difference: <{}>

AThere is no difference but it raises a failure.
Did I do something wong?

Seb
This topic is locked and can not be replied to.