]> git.openstreetmap.org Git - rails.git/commitdiff
Update changeset browse view for renaming of changeset#list to changeset#index
authorTom Hughes <tom@compton.nu>
Sun, 9 Sep 2018 11:36:34 +0000 (12:36 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 9 Sep 2018 11:36:34 +0000 (12:36 +0100)
app/views/browse/changeset.html.erb
test/controllers/browse_controller_test.rb

index 85b9515dfedab9442490590023bdbbf0c67977e1..545b6d072afea5f4e7ea5001c08c310a899d50eb 100644 (file)
     <% end %>
     <%=
         user = (@prev_by_user || @next_by_user).user.display_name
-        link_to content_tag(:bdi, user), :controller => "changeset", :action => "list", :display_name => user
+        link_to content_tag(:bdi, user), :controller => "changeset", :action => "index", :display_name => user
     %>
     <% if @next_by_user %>
       &middot;
index 230a74cb64023d9693097de0244dcbea6fc4a95d..d6bde97d6add65bdcbaa9dc90088875f1a625640 100644 (file)
@@ -68,8 +68,10 @@ class BrowseControllerTest < ActionController::TestCase
   end
 
   def test_read_changeset
+    user = create(:user)
     private_changeset = create(:changeset, :user => create(:user, :data_public => false))
-    changeset = create(:changeset)
+    changeset = create(:changeset, :user => user)
+    create(:changeset, :user => user)
     browse_check "changeset", private_changeset.id, "browse/changeset"
     browse_check "changeset", changeset.id, "browse/changeset"
   end