Avoid using "other" as a translation key

This commit is contained in:
Tom Hughes 2018-06-16 16:21:07 +01:00
parent 4862bade50
commit 0071025400
6 changed files with 24 additions and 24 deletions

View file

@ -23,7 +23,7 @@ class ReportDiaryCommentTest < ApplicationSystemTestCase
assert page.has_content? "Report"
assert page.has_content? I18n.t("reports.new.disclaimer.intro")
choose I18n.t("reports.new.categories.diary_comment.spam")
choose I18n.t("reports.new.categories.diary_comment.spam_label")
fill_in "report_details", :with => "This comment is spam"
assert_difference "Issue.count", 1 do
click_on "Create Report"

View file

@ -22,7 +22,7 @@ class ReportDiaryEntryTest < ApplicationSystemTestCase
assert page.has_content? "Report"
assert page.has_content? I18n.t("reports.new.disclaimer.intro")
choose I18n.t("reports.new.categories.diary_entry.spam")
choose I18n.t("reports.new.categories.diary_entry.spam_label")
fill_in "report_details", :with => "This is advertising"
assert_difference "Issue.count", 1 do
click_on "Create Report"
@ -45,7 +45,7 @@ class ReportDiaryEntryTest < ApplicationSystemTestCase
assert page.has_content? "Report"
assert page.has_content? I18n.t("reports.new.disclaimer.intro")
choose I18n.t("reports.new.categories.diary_entry.spam")
choose I18n.t("reports.new.categories.diary_entry.spam_label")
fill_in "report_details", :with => "This is advertising"
assert_no_difference "Issue.count" do
click_on "Create Report"

View file

@ -18,7 +18,7 @@ class ReportNoteTest < ApplicationSystemTestCase
assert page.has_content? "Report"
assert page.has_content? I18n.t("reports.new.disclaimer.intro")
choose I18n.t("reports.new.categories.note.spam")
choose I18n.t("reports.new.categories.note.spam_label")
fill_in "report_details", :with => "This is spam"
assert_difference "Issue.count", 1 do
click_on "Create Report"
@ -38,7 +38,7 @@ class ReportNoteTest < ApplicationSystemTestCase
assert page.has_content? "Report"
assert page.has_content? I18n.t("reports.new.disclaimer.intro")
choose I18n.t("reports.new.categories.note.spam")
choose I18n.t("reports.new.categories.note.spam_label")
fill_in "report_details", :with => "This is spam"
assert_difference "Issue.count", 1 do
click_on "Create Report"

View file

@ -18,7 +18,7 @@ class ReportUserTest < ApplicationSystemTestCase
assert page.has_content? "Report"
assert page.has_content? I18n.t("reports.new.disclaimer.intro")
choose I18n.t("reports.new.categories.user.vandal")
choose I18n.t("reports.new.categories.user.vandal_label")
fill_in "report_details", :with => "This user is a vandal"
assert_difference "Issue.count", 1 do
click_on "Create Report"