X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f3ff36418b60a56f18525900720e6ff9d21f516d..a543e731c0433b2aa0f0f1583f7c70182a084fd5:/test/functional/changeset_controller_test.rb diff --git a/test/functional/changeset_controller_test.rb b/test/functional/changeset_controller_test.rb index 01600c2d9..0d062ab2d 100644 --- a/test/functional/changeset_controller_test.rb +++ b/test/functional/changeset_controller_test.rb @@ -1643,14 +1643,14 @@ 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 assert_template "list" # Now check that all 20 (or however many were returned) changesets are in the html assert_select "h1", :text => "Changesets", :count => 1 - assert_select "table[id='changeset_list'] tr", :count => changesets.size + 1 + assert_select "table[id='changeset_list'] tr", :count => changesets.size changesets.each do |changeset| # FIXME this test needs rewriting - test for table contents end