get friend_changesets_path
assert_response :redirect
- assert_redirected_to :controller => :users, :action => :login, :referer => friend_changesets_path
+ assert_redirected_to login_path(:referer => friend_changesets_path)
session_for(private_user)
get nearby_changesets_path
assert_response :redirect
- assert_redirected_to :controller => :users, :action => :login, :referer => nearby_changesets_path
+ assert_redirected_to login_path(:referer => nearby_changesets_path)
session_for(private_user)
changesets.each do |changeset|
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