X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e31376e28da8f656e33508cc899da465b63673c5..e204e1d178242c450ca0db46724dc9d7e5e11665:/test/models/issue_comment_test.rb diff --git a/test/models/issue_comment_test.rb b/test/models/issue_comment_test.rb index 53ba35889..27fa9d66d 100644 --- a/test/models/issue_comment_test.rb +++ b/test/models/issue_comment_test.rb @@ -1,7 +1,9 @@ require "test_helper" class IssueCommentTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end + test "body must be present" do + comment = build(:issue_comment, :body => "") + assert_not comment.valid? + assert_not_nil comment.errors[:body] + end end