openstreetmap-website/test/models/issue_comment_test.rb
Harry Wood e204e1d178 Add some basic testing of issue_comment model
A factory and a basic test of validation for the issue_comment model, similar to what we have for diary_comment.
2022-05-06 12:38:17 +01:00

9 lines
235 B
Ruby

require "test_helper"
class IssueCommentTest < ActiveSupport::TestCase
test "body must be present" do
comment = build(:issue_comment, :body => "")
assert_not comment.valid?
assert_not_nil comment.errors[:body]
end
end