Test that tags are included correctly in the changeset feed
This commit is contained in:
parent
365aee7991
commit
140b296f59
2 changed files with 9 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
atom_feed(:language => I18n.locale, :schema_date => 2009,
|
atom_feed(:language => I18n.locale, :schema_date => 2009,
|
||||||
:id => url_for(@params.merge(:only_path => false)),
|
:id => url_for(@params.merge(:only_path => false)),
|
||||||
:root_url => url_for(@params.merge(:action => :index, :format => nil, :only_path => false)),
|
:root_url => url_for(@params.merge(:action => :index, :format => nil, :only_path => false)),
|
||||||
|
"xmlns:xhtml" => "http://www.w3.org/1999/xhtml",
|
||||||
"xmlns:georss" => "http://www.georss.org/georss") do |feed|
|
"xmlns:georss" => "http://www.georss.org/georss") do |feed|
|
||||||
feed.title changeset_index_title(params, current_user)
|
feed.title changeset_index_title(params, current_user)
|
||||||
|
|
||||||
|
|
|
@ -329,6 +329,14 @@ class ChangesetsControllerTest < ActionDispatch::IntegrationTest
|
||||||
|
|
||||||
changesets.each do |changeset|
|
changesets.each do |changeset|
|
||||||
assert_select "> entry > id", changeset_url(:id => changeset.id)
|
assert_select "> entry > id", changeset_url(:id => changeset.id)
|
||||||
|
|
||||||
|
assert_select "> entry > content > xhtml|div > xhtml|table" do
|
||||||
|
assert_select "> xhtml|tr > xhtml|td > xhtml|table" do
|
||||||
|
changeset.tags.each do |key, _|
|
||||||
|
assert_select "> xhtml|tr > xhtml|td", :text => /^#{key} = /
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue