Rename user_controller to users_controller

This commit is contained in:
Andy Allan 2018-10-03 15:31:10 +02:00
parent c77429000c
commit 3ec67ea2d3
58 changed files with 297 additions and 297 deletions

View file

@ -5,7 +5,7 @@ class IssuesTest < ApplicationSystemTestCase
def test_view_issues_not_logged_in
visit issues_path
assert page.has_content?(I18n.t("user.login.title"))
assert page.has_content?(I18n.t("users.login.title"))
end
def test_view_issues_normal_user

View file

@ -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")
@ -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")
@ -52,7 +52,7 @@ class ReportUserTest < ApplicationSystemTestCase
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")