assert_select "osm>changeset>discussion>comment", 0
changeset_id = changesets(:normal_user_closed_change).id
assert_select "osm>changeset>discussion>comment", 0
changeset_id = changesets(:normal_user_closed_change).id
get :read, :id => changeset_id, :include_discussion => true
assert_response :success, "cannot get closed changeset with comments"
get :read, :id => changeset_id, :include_discussion => true
assert_response :success, "cannot get closed changeset with comments"
assert_equal true, comment.visible
post :hide_comment, :id => comment.id
assert_equal true, comment.visible
post :hide_comment, :id => comment.id
assert_equal true, comment.visible
basic_authorization(users(:moderator_user).email, "test")
assert_equal true, comment.visible
basic_authorization(users(:moderator_user).email, "test")
assert_equal false, comment.visible
post :unhide_comment, :id => comment.id
assert_equal false, comment.visible
post :unhide_comment, :id => comment.id
assert_equal false, comment.visible
basic_authorization(users(:moderator_user).email, "test")
assert_equal false, comment.visible
basic_authorization(users(:moderator_user).email, "test")
get :comments_feed, :format => "rss"
assert_response :success
assert_equal "application/rss+xml", @response.content_type
get :comments_feed, :format => "rss"
assert_response :success
assert_equal "application/rss+xml", @response.content_type