]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/report_diary_entry_test.rb
Use underscore versions of model names for translation keys.
[rails.git] / test / system / report_diary_entry_test.rb
index 542e8ba0c8e6bec68b436fcc17bde7b0d984ab01..3be8b3fd7b65ce49da0cfdeee200b8c3655cb54b 100644 (file)
@@ -22,9 +22,9 @@ class ReportDiaryEntryTest < ApplicationSystemTestCase
     assert page.has_content? "Report"
     assert page.has_content? I18n.t("issues.new.disclaimer.intro")
 
     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"
     fill_in "report_details", :with => "This is advertising"
-    click_on "Save changes"
+    click_on "Create Report"
 
     assert page.has_content? "Your report has been registered sucessfully"
   end
 
     assert page.has_content? "Your report has been registered sucessfully"
   end
@@ -41,9 +41,9 @@ class ReportDiaryEntryTest < ApplicationSystemTestCase
     assert page.has_content? "Report"
     assert page.has_content? I18n.t("issues.new.disclaimer.intro")
 
     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"
     fill_in "report_details", :with => "This is advertising"
-    click_on "Save changes"
+    click_on "Create Report"
 
     issue.reload
     assert !issue.resolved?
 
     issue.reload
     assert !issue.resolved?