Sha256: d914886a4457531b9f666adb30fa6e213cf0163c366c850d170dbbc19a62f6cc
Contents?: true
Size: 633 Bytes
Versions: 37
Compression:
Stored size: 633 Bytes
Contents
class Zendesk2::Client class Real def get_organization(params={}) id = params["id"] request( :method => :get, :path => "/organizations/#{id}.json" ) end end # Real class Mock def get_organization(params={}) id = params["id"] if body = self.data[:organizations][id] response( :path => "/organizations/#{id}.json", :body => { "organization" => body }, ) else response( :path => "/organizations/#{id}.json", :status => 404 ) end end end # Mock end
Version data entries
37 entries across 37 versions & 1 rubygems