Ensure report details are not blank.
[rails.git] / test / models / report_test.rb
1 require "test_helper"
2
3 class ReportTest < ActiveSupport::TestCase
4   def test_details_required
5     report = create(:report)
6
7     assert report.valid?
8     report.details = ''
9     assert !report.valid?
10   end
11 end