X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a20e28809f5ca1e3f3579faeaf118fff3ecc4994..2fc70be734fb6439b1eef340d396af62965817df:/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 988bfbe1f..e9262388a 100644 --- a/test/system/report_diary_entry_test.rb +++ b/test/system/report_diary_entry_test.rb @@ -22,7 +22,7 @@ class ReportDiaryEntryTest < ApplicationSystemTestCase assert page.has_content? "Report" assert page.has_content? I18n.t("issues.new.disclaimer.intro") - choose I18n.t("reports.categories.DiaryEntry.spam") + choose I18n.t("reports.categories.diary_entry.spam") fill_in "report_details", :with => "This is advertising" click_on "Create Report" @@ -41,7 +41,7 @@ class ReportDiaryEntryTest < ApplicationSystemTestCase assert page.has_content? "Report" assert page.has_content? I18n.t("issues.new.disclaimer.intro") - choose I18n.t("reports.categories.DiaryEntry.spam") + choose I18n.t("reports.categories.diary_entry.spam") fill_in "report_details", :with => "This is advertising" click_on "Create Report" @@ -49,4 +49,10 @@ class ReportDiaryEntryTest < ApplicationSystemTestCase assert !issue.resolved? assert issue.open? end + + def test_missing_report_params + sign_in_as(create(:user)) + visit new_report_path + assert page.has_content? I18n.t("reports.new.missing_params") + end end