1 # frozen_string_literal: true
 
   5 class IssueCommentTest < ActiveSupport::TestCase
 
   6   test "body must be present" do
 
   7     comment = build(:issue_comment, :body => "")
 
   8     assert_not comment.valid?
 
   9     assert_not_nil comment.errors[:body]
 
  13     comment = create(:issue_comment)
 
  14     assert_instance_of(RichText::Markdown, comment.body)