X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ab3150646c539daef1a05a25245fe70c6ad8206f..2aca6920dc3488a381b275d21a31344da02029e6:/test/system/report_diary_entry_test.rb diff --git a/test/system/report_diary_entry_test.rb b/test/system/report_diary_entry_test.rb index 41fba9604..86d301e3c 100644 --- a/test/system/report_diary_entry_test.rb +++ b/test/system/report_diary_entry_test.rb @@ -6,7 +6,7 @@ class ReportDiaryEntryTest < ApplicationSystemTestCase @diary_entry = create(:diary_entry) end - def test_no_flag_when_not_logged_in + def test_no_link_when_not_logged_in visit diary_entry_path(@diary_entry.user.display_name, @diary_entry) assert page.has_content?(@diary_entry.title) @@ -20,9 +20,9 @@ class ReportDiaryEntryTest < ApplicationSystemTestCase click_on I18n.t("diary_entry.diary_entry.report") assert page.has_content? "Report" - assert page.has_content? I18n.t("issues.new.disclaimer.intro") + assert page.has_content? I18n.t("reports.new.disclaimer.intro") - choose I18n.t("reports.categories.diary_entry.spam") + choose I18n.t("reports.new.categories.diary_entry.spam") fill_in "report_details", :with => "This is advertising" click_on "Create Report" @@ -39,9 +39,9 @@ class ReportDiaryEntryTest < ApplicationSystemTestCase click_on I18n.t("diary_entry.diary_entry.report") assert page.has_content? "Report" - assert page.has_content? I18n.t("issues.new.disclaimer.intro") + assert page.has_content? I18n.t("reports.new.disclaimer.intro") - choose I18n.t("reports.categories.diary_entry.spam") + choose I18n.t("reports.new.categories.diary_entry.spam") fill_in "report_details", :with => "This is advertising" click_on "Create Report"