]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/report_note_test.rb
Bump leaflet.locatecontrol from 0.73.0 to 0.74.0
[rails.git] / test / system / report_note_test.rb
index 24deac2cb96de20dc32e6fad8a5ce24f919e05f7..e45a4e702bbb1a1735e2a3c13e9324de560c6d52 100644 (file)
@@ -24,9 +24,10 @@ class ReportNoteTest < ApplicationSystemTestCase
       click_on "Create Report"
     end
 
-    assert page.has_content? "Your report has been registered sucessfully"
+    assert page.has_content? "Your report has been registered successfully"
 
     assert_equal note, Issue.last.reportable
+    assert_equal "moderator", Issue.last.assigned_role
   end
 
   def test_can_report_notes_with_author
@@ -44,8 +45,9 @@ class ReportNoteTest < ApplicationSystemTestCase
       click_on "Create Report"
     end
 
-    assert page.has_content? "Your report has been registered sucessfully"
+    assert page.has_content? "Your report has been registered successfully"
 
     assert_equal note, Issue.last.reportable
+    assert_equal "moderator", Issue.last.assigned_role
   end
 end