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

tilmanb notifications at github.com
Wed Apr 11 11:55:02 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"

Ok, thanks. Then just out of curiosity - why do line 14 and 24 of the test use the internationalisation?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1576#discussion_r180726469
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180411/2b33a126/attachment.html>


More information about the rails-dev mailing list