Test state of created comment

This commit is contained in:
Anton Khorev 2025-02-13 03:33:48 +03:00
parent c9057188aa
commit c0ef1a88ad

View file

@ -153,6 +153,12 @@ module Api
post changeset_comment_path(changeset), :params => { :text => "This is a comment" }, :headers => auth_header post changeset_comment_path(changeset), :params => { :text => "This is a comment" }, :headers => auth_header
assert_response :success assert_response :success
end end
comment = ChangesetComment.last
assert_equal changeset.id, comment.changeset_id
assert_equal user.id, comment.author_id
assert_equal "This is a comment", comment.body
assert comment.visible
end end
## ##