Ensure report details are not blank.
[rails.git] / test / models / report_test.rb
index c7d4f0adc130d10b4cfef44d7a53f88d982a585b..a0de9448c206adcd0a0831a3072102870d8f3df8 100644 (file)
@@ -1,7 +1,11 @@
 require "test_helper"
 
 class ReportTest < ActiveSupport::TestCase
-  # test "the truth" do
-  #   assert true
-  # end
+  def test_details_required
+    report = create(:report)
+
+    assert report.valid?
+    report.details = ''
+    assert !report.valid?
+  end
 end