Sha256: 4ee38e865aa0360052a1f293616b885c49493d6d4c8c78bd767f748440191fa1
Contents?: true
Size: 552 Bytes
Versions: 5
Compression:
Stored size: 552 Bytes
Contents
class Zendesk2::Client class Real def get_topic_comment(params={}) id = params["id"] topic_id = params["topic_id"] request( :method => :get, :path => "/topics/#{topic_id}/comments/#{id}.json" ) end end # Real class Mock def get_topic_comment(params={}) id = params["id"] body = self.data[:topic_comments][id] response( :path => "/topic_comments/#{id}.json", :body => { "topic_comment" => body }, ) end end # Mock end
Version data entries
5 entries across 5 versions & 1 rubygems