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:
parent
6b236ec95b
commit
3cd5f45e08
9 changed files with 62 additions and 46 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue