]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/report_test.rb
Merge branch 'master' into moderation
[rails.git] / test / models / report_test.rb
index a0de9448c206adcd0a0831a3072102870d8f3df8..fad76297bf9f2a178323501a054849692519dbe1 100644 (file)
@@ -5,7 +5,15 @@ class ReportTest < ActiveSupport::TestCase
     report = create(:report)
 
     assert report.valid?
-    report.details = ''
+    report.details = ""
+    assert !report.valid?
+  end
+
+  def test_category_required
+    report = create(:report)
+
+    assert report.valid?
+    report.category = ""
     assert !report.valid?
   end
 end