X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d7612f42d04727c037deb3ef66ac421ea347d54b..c00c515d9d12e25e63d3a0b3271862dd5b134ca4:/test/models/report_test.rb?ds=sidebyside diff --git a/test/models/report_test.rb b/test/models/report_test.rb index c7d4f0adc..a0de9448c 100644 --- a/test/models/report_test.rb +++ b/test/models/report_test.rb @@ -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