X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/276599d34fcbd7babc8e34b6859459cb44acabe7..10999cfc5e6f64f1b6d81ddb4a2f751c694bcbc5:/test/system/report_user_test.rb diff --git a/test/system/report_user_test.rb b/test/system/report_user_test.rb index 9d919523b..5bdf3c201 100644 --- a/test/system/report_user_test.rb +++ b/test/system/report_user_test.rb @@ -6,7 +6,7 @@ class ReportUserTest < ApplicationSystemTestCase visit browse_note_path(note) assert page.has_content?(note.comments.first.body) - assert_not page.has_content?(I18n.t("user.show.report")) + assert_not page.has_content?(I18n.t("users.show.report")) end def test_can_report_user @@ -14,7 +14,7 @@ class ReportUserTest < ApplicationSystemTestCase sign_in_as(create(:user)) visit user_path(user) - click_on I18n.t("user.show.report") + click_on I18n.t("users.show.report") assert page.has_content? "Report" assert page.has_content? I18n.t("reports.new.disclaimer.intro") @@ -24,7 +24,7 @@ class ReportUserTest < ApplicationSystemTestCase click_on "Create Report" end - assert page.has_content? "Your report has been registered sucessfully" + assert page.has_content? "Your report has been registered successfully" assert_equal user, Issue.last.reportable assert_equal "moderator", Issue.last.assigned_role @@ -35,7 +35,7 @@ class ReportUserTest < ApplicationSystemTestCase sign_in_as(create(:user)) visit user_path(user) - click_on I18n.t("user.show.report") + click_on I18n.t("users.show.report") assert page.has_content? "Report" assert page.has_content? I18n.t("reports.new.disclaimer.intro") @@ -45,14 +45,14 @@ class ReportUserTest < ApplicationSystemTestCase click_on "Create Report" end - assert page.has_content? "Your report has been registered sucessfully" + assert page.has_content? "Your report has been registered successfully" assert_equal user, Issue.last.reportable assert_equal "moderator", Issue.last.assigned_role visit user_path(user) - click_on I18n.t("user.show.report") + click_on I18n.t("users.show.report") assert page.has_content? "Report" assert page.has_content? I18n.t("reports.new.disclaimer.intro") @@ -62,7 +62,7 @@ class ReportUserTest < ApplicationSystemTestCase click_on "Create Report" end - assert page.has_content? "Your report has been registered sucessfully" + assert page.has_content? "Your report has been registered successfully" assert_equal user, Issue.last.reportable assert_equal "administrator", Issue.last.assigned_role