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