]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/changeset_controller_test.rb
Get tests passing. Use factories instead of fixtures.
[rails.git] / test / controllers / changeset_controller_test.rb
index f1b029b39d5b2abb902f4771e9a7b90ee78611b3..654682ac083ad34722af114f206a9e191ffbd53f 100644 (file)
@@ -2044,6 +2044,18 @@ EOF
     check_list_result(Changeset.where("id <= 4"))
   end
 
+  ##
+  # Check that a list with a next page link works
+  def test_list_more
+    create_list(:changeset, 50)
+
+    get :list, :params => { :format => "html" }
+    assert_response :success
+
+    get :list, :params => { :format => "html" }, :xhr => true
+    assert_response :success
+  end
+
   ##
   # This should display the last 20 non-empty changesets
   def test_feed