Avoid using "other" as a translation key
This commit is contained in:
parent
4862bade50
commit
0071025400
6 changed files with 24 additions and 24 deletions
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue