end
##
- # list edits (open changesets) in reverse chronological order
+ # list non-empty changesets in reverse chronological order
def list
if request.format == :atom && params[:max_id]
redirect_to url_for(params.merge(:max_id => nil)), :status => :moved_permanently
end
##
- # This should display the last 20 changesets closed
+ # This should display the last 20 non-empty changesets
def test_feed
changeset = create(:changeset, :num_changes => 1)
+ closed_changeset = create(:changeset, :closed, :num_changes => 1)
_empty_changeset = create(:changeset, :num_changes => 0)
get :feed, :format => :atom
assert_template "list"
assert_equal "application/atom+xml", response.content_type
- check_feed_result([changeset])
+ check_feed_result([changeset, closed_changeset])
end
##