Sha256: 2ac6c7a00701cbb7a0a938ae1628a679c3a1256cf989d68871b2c3f937cc72fd

Contents?: true

Size: 696 Bytes

Versions: 16

Compression:

Stored size: 696 Bytes

Contents

require 'spec_helper'

describe "topic_comments" do
  let!(:client) { create_client }
  let!(:user)   { client.users.create!(email: mock_email, name: mock_uuid, verified: true) }
  let!(:forum)  { client.forums.create!(name: mock_uuid) }
  let!(:topic)  { client.topics.create!(title: mock_uuid, body: mock_uuid, forum: forum) }

  include_examples "zendesk resource",
    {
      :create_params => lambda { { body: mock_uuid, topic_id: topic.identity, user_id: user.identity } },
      :update        => false,
      :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

16 entries across 16 versions & 1 rubygems

Version Path
zendesk2-1.6.1 spec/topic_comments_spec.rb
zendesk2-1.5.17 spec/topic_comments_spec.rb
zendesk2-1.5.16 spec/topic_comments_spec.rb
zendesk2-1.5.15 spec/topic_comments_spec.rb
zendesk2-1.5.14 spec/topic_comments_spec.rb
zendesk2-1.5.13 spec/topic_comments_spec.rb
zendesk2-1.5.12 spec/topic_comments_spec.rb
zendesk2-1.5.11 spec/topic_comments_spec.rb
zendesk2-1.5.10 spec/topic_comments_spec.rb
zendesk2-1.5.9 spec/topic_comments_spec.rb
zendesk2-1.5.8 spec/topic_comments_spec.rb
zendesk2-1.5.7 spec/topic_comments_spec.rb
zendesk2-1.5.6 spec/topic_comments_spec.rb
zendesk2-1.5.5 spec/topic_comments_spec.rb
zendesk2-1.5.4 spec/topic_comments_spec.rb
zendesk2-1.5.3 spec/topic_comments_spec.rb