Use num_changes to detect empty changesets instead of the bbox
This commit is contained in:
parent
ea207f51cc
commit
e5c80c80ad
3 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue