]> git.openstreetmap.org Git - rails.git/blob - test/models/issue_comment_test.rb
Add frozen_string_literal comments to ruby files
[rails.git] / test / models / issue_comment_test.rb
1 # frozen_string_literal: true
2
3 require "test_helper"
4
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]
10   end
11
12   test "body" do
13     comment = create(:issue_comment)
14     assert_instance_of(RichText::Markdown, comment.body)
15   end
16 end