Test state of created comment
This commit is contained in:
parent
c9057188aa
commit
c0ef1a88ad
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue