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