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

Version Path
zendesk2-0.4.4 spec/topic_comments_spec.rb
zendesk2-0.4.3 spec/topic_comments_spec.rb
zendesk2-0.4.2 spec/topic_comments_spec.rb
zendesk2-0.4.1 spec/topic_comments_spec.rb
zendesk2-0.4.0 spec/topic_comments_spec.rb
zendesk2-0.3.2 spec/topic_comments_spec.rb
zendesk2-0.3.1 spec/topic_comments_spec.rb
zendesk2-0.3.0 spec/topic_comments_spec.rb
zendesk2-0.2.7 spec/topic_comments_spec.rb
zendesk2-0.2.6 spec/topic_comments_spec.rb
zendesk2-0.2.5 spec/topic_comments_spec.rb
zendesk2-0.2.4 spec/topic_comments_spec.rb
zendesk2-0.2.3 spec/topic_comments_spec.rb
zendesk2-0.2.2 spec/topic_comments_spec.rb