projects
/
rails.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ensure report details are not blank.
[rails.git]
/
test
/
models
/
report_test.rb
diff --git
a/test/models/report_test.rb
b/test/models/report_test.rb
index c7d4f0adc130d10b4cfef44d7a53f88d982a585b..a0de9448c206adcd0a0831a3072102870d8f3df8 100644
(file)
--- 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