Test titles in changeset feed

This commit is contained in:
Tom Hughes 2016-03-14 21:18:26 +00:00
parent 5175ee68b0
commit 246d8a4452
2 changed files with 4 additions and 3 deletions

View file

@ -66,7 +66,7 @@ Metrics/BlockNesting:
# Offense count: 62
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 1653
Max: 1654
# Offense count: 67
Metrics/CyclomaticComplexity:

View file

@ -2339,10 +2339,11 @@ EOF
assert changesets.size <= 20
assert_select "feed", :count => [changesets.size, 1].min do
assert_select "entry", :count => changesets.size
assert_select "> title", :count => 1, :text => /^Changesets/
assert_select "> entry", :count => changesets.size
changesets.each do |changeset|
assert_select "entry > id", changeset_url(:id => changeset.id)
assert_select "> entry > id", changeset_url(:id => changeset.id)
end
end
end