Sha256: e0d438d4a1c28f3588f35a4d774c8820a0433a1485a891606497103fc85538de
Contents?: true
Size: 579 Bytes
Versions: 9
Compression:
Stored size: 579 Bytes
Contents
class Zendesk2::Client class Real def update_topic(params={}) id = params.delete("id") request( :method => :put, :path => "/topics/#{id}.json", :body => { "topic" => params }, ) end end class Mock def update_topic(params={}) id = params.delete("id") path = "/topics/#{id}.json" body = self.find!(:topics, id).merge!(params) response( :method => :put, :path => path, :body => { "topic" => body }, ) end end end
Version data entries
9 entries across 9 versions & 1 rubygems