[openstreetmap/openstreetmap-website] Allow reporting of abusive users to moderators or admins (#1576)

Tom Hughes notifications at github.com
Wed Apr 11 07:14:16 UTC 2018

tomhughes commented on this pull request.

> +  end
+  def test_it_works
+    sign_in_as(create(:user))
+    visit diary_entry_path(@diary_entry.user.display_name, @diary_entry)
+    assert page.has_content? @diary_entry.title
+    click_on I18n.t("diary_entry.diary_comment.report")
+    assert page.has_content? "Report"
+    assert page.has_content? I18n.t("issues.new.disclaimer.intro")
+    choose I18n.t("reports.categories.diary_comment.spam")
+    fill_in "report_details", :with => "This comment is spam"
+    click_on "Create Report"
+    assert page.has_content? "Your report has been registered sucessfully"

Not in the tests, no - those always run in English. If it's not translated at the point where it is generated then that would be an issue.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180411/b0281826/attachment.html>

More information about the rails-dev mailing list