Simplify browse routes and make routes more consistent

This gets rid of the /browse/ prefix and uses /history consistently
for all routes that show a list of changesets.
This commit is contained in:
Tom Hughes 2013-11-28 00:14:07 +00:00
parent 6b236ec95b
commit 3cd5f45e08
9 changed files with 62 additions and 46 deletions

View file

@ -40,19 +40,19 @@ class ChangesetControllerTest < ActionController::TestCase
{ :controller => "changeset", :action => "query" }
)
assert_routing(
{ :path => "/user/name/edits", :method => :get },
{ :path => "/user/name/history", :method => :get },
{ :controller => "changeset", :action => "list", :display_name => "name" }
)
assert_routing(
{ :path => "/user/name/edits/feed", :method => :get },
{ :path => "/user/name/history/feed", :method => :get },
{ :controller => "changeset", :action => "feed", :display_name => "name", :format => :atom }
)
assert_routing(
{ :path => "/browse/friends", :method => :get },
{ :path => "/history/friends", :method => :get },
{ :controller => "changeset", :action => "list", :friends => true }
)
assert_routing(
{ :path => "/browse/nearby", :method => :get },
{ :path => "/history/nearby", :method => :get },
{ :controller => "changeset", :action => "list", :nearby => true }
)
assert_routing(