Ensure closed changesets appear in the feed, and update some misleading comments.
This commit is contained in:
parent
c12459dead
commit
060230fb94
3 changed files with 5 additions and 4 deletions
|
@ -64,7 +64,7 @@ Metrics/BlockNesting:
|
|||
# Offense count: 62
|
||||
# Configuration parameters: CountComments.
|
||||
Metrics/ClassLength:
|
||||
Max: 1781
|
||||
Max: 1782
|
||||
|
||||
# Offense count: 69
|
||||
Metrics/CyclomaticComplexity:
|
||||
|
|
|
@ -248,7 +248,7 @@ class ChangesetController < ApplicationController
|
|||
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
|
||||
|
|
|
@ -2044,9 +2044,10 @@ EOF
|
|||
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
|
||||
|
@ -2054,7 +2055,7 @@ EOF
|
|||
assert_template "list"
|
||||
assert_equal "application/atom+xml", response.content_type
|
||||
|
||||
check_feed_result([changeset])
|
||||
check_feed_result([changeset, closed_changeset])
|
||||
end
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue