Sha256: e62cf58fd83d1565547edc1261116cc4e1c3c41794dd523697e33187955d02a4
Contents?: true
Size: 555 Bytes
Versions: 26
Compression:
Stored size: 555 Bytes
Contents
class Zendesk2::Client class Real def update_group(params={}) id = params.delete("id") path = "/groups/#{id}.json" request( :method => :put, :path => path, :body => { "group" => params }, ) end end class Mock def update_group(params={}) id = params.delete("id") response( :method => :put, :path => "/groups/#{id}.json", :body => { "group" => find!(:groups, id).merge!(params) }, ) end end end
Version data entries
26 entries across 26 versions & 1 rubygems