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