Sha256: 100e0cdc118629f5f7b5727f5d08bea12696f8f72ac1dbf581ccaa261ad18e8c
Contents?: true
Size: 692 Bytes
Versions: 6
Compression:
Stored size: 692 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.id, user_id: user.id} }, lambda { {body: Zendesk2.uuid} }, { :fetch_params => lambda {|tc| [tc.topic_id, tc.id]}, :collection => lambda { client.topic_comments(topic_id: topic.id) }, } end
Version data entries
6 entries across 6 versions & 1 rubygems