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

tilmanb notifications at github.com
Wed Apr 11 07:09:17 UTC 2018

tilmanb 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"

Does the string also need to be translated via I18n.t(...) ?

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/a9f8e3be/attachment.html>

More information about the rails-dev mailing list