]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/changeset_controller_test.rb
Use num_changes to detect empty changesets instead of the bbox
[rails.git] / test / functional / changeset_controller_test.rb
index bb6d2f52a0f21f78c33b098ae0f95e7656b40856..0d062ab2d801cf6477fdc3f84ca279b131606c00 100644 (file)
@@ -1643,7 +1643,7 @@ EOF
   ##
   # This should display the last 20 changesets closed.
   def test_list
-    changesets = Changeset.find(:all, :order => "created_at DESC", :conditions => ['min_lat IS NOT NULL'], :limit=> 20)
+    changesets = Changeset.find(:all, :order => "created_at DESC", :conditions => ['num_changes > 0'], :limit=> 20)
     assert changesets.size <= 20
     get :list, {:format => "html"}
     assert_response :success