]> git.openstreetmap.org Git - rails.git/blob - test/models/issue_comment_test.rb
Switch to bootstrap recommended viewport definition
[rails.git] / test / models / issue_comment_test.rb
1 require "test_helper"
2
3 class IssueCommentTest < ActiveSupport::TestCase
4   test "body must be present" do
5     comment = build(:issue_comment, :body => "")
6     assert_not comment.valid?
7     assert_not_nil comment.errors[:body]
8   end
9
10   test "body" do
11     comment = create(:issue_comment)
12     assert_instance_of(RichText::Markdown, comment.body)
13   end
14 end