Sha256: d6d3798b17b517767ee54a3ad0fe59c72e51e1f29b4c6d619988207cb1dba082
Contents?: true
Size: 659 Bytes
Versions: 9
Compression:
Stored size: 659 Bytes
Contents
class Zendesk2::Client class Real def destroy_topic_comment(params={}) id = params["id"] topic_id = params["topic_id"] request( :method => :delete, :path => "/topics/#{topic_id}/comments/#{id}.json" ) end end class Mock def destroy_topic_comment(params={}) id = params["id"] topic_id = params["topic_id"] path = "/topics/#{topic_id}/comments/#{id}.json" body = self.delete!(:topic_comments, id) response( :method => :delete, :path => path, :body => { "topic_comment" => body, }, ) end end end
Version data entries
9 entries across 9 versions & 1 rubygems