Sha256: e7bd5cc1a4d7387872a530303ff757dcd5bc4e6a99a1ff965eb1234535a52539

Contents?: true

Size: 717 Bytes

Versions: 10

Compression:

Stored size: 717 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_params => lambda { {body: mock_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

10 entries across 10 versions & 1 rubygems

Version Path
zendesk2-1.4.2 spec/topic_comments_spec.rb
zendesk2-1.4.1 spec/topic_comments_spec.rb
zendesk2-1.4.0 spec/topic_comments_spec.rb
zendesk2-1.3.3 spec/topic_comments_spec.rb
zendesk2-1.3.2 spec/topic_comments_spec.rb
zendesk2-1.3.1 spec/topic_comments_spec.rb
zendesk2-1.3.0 spec/topic_comments_spec.rb
zendesk2-1.2.10 spec/topic_comments_spec.rb
zendesk2-1.2.9 spec/topic_comments_spec.rb
zendesk2-1.2.7 spec/topic_comments_spec.rb