Sha256: fb4de55903ec20aef479bd39a163ff9ee5506b577aeabd13062686f6c3e80feb
Contents?: true
Size: 662 Bytes
Versions: 40
Compression:
Stored size: 662 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.data[:topic_comments].delete(id) response( :method => :delete, :path => path, :body => { "topic_comment" => body, }, ) end end end
Version data entries
40 entries across 40 versions & 1 rubygems