##
# check the result of a feed
def check_feed_result(changesets)
- assert changesets.size <= 20
+ assert_operator changesets.size, :<=, 20
assert_select "feed", :count => [changesets.size, 1].min do
assert_select "> title", :count => 1, :text => /^Changesets/
assert_select "> entry > content > xhtml|div > xhtml|table" do
assert_select "> xhtml|tr > xhtml|td > xhtml|table" do
- changeset.tags.each do |key, _|
+ changeset.tags.each_key do |key|
assert_select "> xhtml|tr > xhtml|td", :text => /^#{key} = /
end
end