Rename user_controller to users_controller
This commit is contained in:
parent
c77429000c
commit
3ec67ea2d3
58 changed files with 297 additions and 297 deletions
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue