Sha256: 489543d856c9cd4d13d5f521fb158821b2681672f53727453e70e62af4f61627
Contents?: true
Size: 741 Bytes
Versions: 14
Compression:
Stored size: 741 Bytes
Contents
require 'spec_helper' describe "topic_comments" do let!(:client) { create_client } let!(:user) { client.users.create!(email: "zendesk2+#{Zendesk2.uuid}@example.org", name: Zendesk2.uuid, verified: true) } let!(:forum) { client.forums.create!(name: Zendesk2.uuid) } let!(:topic) { client.topics.create!(title: Zendesk2.uuid, body: Zendesk2.uuid, forum: forum) } it_should_behave_like "a resource", :topic_comments, lambda { {body: Zendesk2.uuid, topic_id: topic.identity, user_id: user.identity} }, lambda { {body: Zendesk2.uuid} }, { :fetch_params => lambda {|tc| {"topic_id" => tc.topic_id, "id" => tc.identity}}, :collection => lambda { client.topic_comments(topic_id: topic.identity) }, } end
Version data entries
14 entries across 14 versions & 1 rubygems