Greetings, I keep getting the following error after calling follow_redirect() in one of my tests.
here is my testCode:TypeError: can't convert Symbol into String /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/test_process.rb:381:in `delete' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/test_process.rb:381:in `follow_redirect'
If I comment out follow_redirect() the error does not occur. If anyone has a clue I'd love to hear from you.Code:def test_show_without_platform soft_name = @version.software.name.downcase ver_name = @version.name.downcase @request.env['PATH_INFO'] = "/all/#{soft_name}/#{ver_name}" get :show, {:version => ver_name, :software => soft_name, :platform_filter => "all"} url = user_show_software_url(:platform_filter => 'all', :software => soft_name) assert_redirected_to(url) follow_redirect end



I think you got it. And now I know for the future...

Bookmarks