[rspec-users] Spec'ing redirect with arbitrary parameters
Pat Maddox
pergesu at gmail.com
Mon May 21 17:09:57 EDT 2007
I've got the following expectation:
response.should redirect_to(:action => "new", :video_id => "1",
:process_id => "2", :origin_id => "3")
that fails with this error message:
expected redirect to {:video_id=>"1", :process_id=>"2",
:origin_id=>"3", :action=>"new"}, got redirect to
"http://test.host/videos/1/screenshot_selections/new?process_id=2&origin_id=3",
which cannot be routed within this application (spec using the URL
string if the redirection is to an external address)
Seems like it doesn't like the process_id and origin_id parameters.
Am I doing anything wrong or is it just a bug with the rails plugin?
Pat
More information about the rspec-users
mailing list