Ok, I have the answer figured out for the quesion "how to specify ID":

assert_redirected_to '/my_models/edit_photos/' + 
assigns(:my_model).id.to_s


But I still dont know how to avoid hardcoded paths.

I want to replace:

get '/foo/bar'

with something like:

get :controller => :foo, :action => :bar

so that the integrations tests are "not routes.rb dependant".
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to