Sha256: c3e18b92dcbb53600755425b06366b62e8090eae4962c3b2026730f521efd726
Contents?: true
Size: 504 Bytes
Versions: 45
Compression:
Stored size: 504 Bytes
Contents
class Zendesk2::Client class Real def destroy_topic(params={}) id = params["id"] request( :method => :delete, :path => "/topics/#{id}.json" ) end end class Mock def destroy_topic(params={}) id = params["id"] path = "/topics/#{id}.json" body = self.data[:topics].delete(id) response( :method => :delete, :path => path, :body => { "topic" => body, }, ) end end end
Version data entries
45 entries across 45 versions & 1 rubygems