Sha256: 7903738b751db476cc79ade38606fe24ab56da78d2fee9943d58970faabde254

Contents?: true

Size: 905 Bytes

Versions: 6

Compression:

Stored size: 905 Bytes

Contents

require 'spec_helper'

describe "help_center/articles" do
  let(:client)   { create_client }
  let!(:section) do
    category = client.help_center_categories.create!(name: mock_uuid,
                                                     locale: "en-us",
                                                    )
    client.help_center_sections.create!(:name     => mock_uuid,
                                        :locale   => "en-us",
                                        :category => category,
                                       )
  end

  include_examples "zendesk#resource", {
    :collection    => lambda { client.help_center_articles },
    :create_params => lambda { { title: mock_uuid, locale: "en-us", section: section } },
    :update_params => lambda { { title: mock_uuid } },
    :search_params => lambda { Cistern::Hash.slice(create_params, :title) },
    :search        => true,
  }
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zendesk2-1.8.1 spec/help_center/articles_spec.rb
zendesk2-1.7.5 spec/help_center/articles_spec.rb
zendesk2-1.7.4 spec/help_center/articles_spec.rb
zendesk2-1.7.2 spec/help_center/articles_spec.rb
zendesk2-1.7.1 spec/help_center/articles_spec.rb
zendesk2-1.7.0 spec/help_center/articles_spec.rb