Sha256: 394e732b82ff8d301c1524bbbe734c99fd1fa67f116e36a7bbf408965f0feaee

Contents?: true

Size: 921 Bytes

Versions: 7

Compression:

Stored size: 921 Bytes

Contents

require 'spec_helper'

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
zendesk2-1.2.6 spec/help_center/articles_spec.rb
zendesk2-1.2.5 spec/help_center/articles_spec.rb
zendesk2-1.2.4 spec/help_center/articles_spec.rb
zendesk2-1.2.3 spec/help_center/articles_spec.rb
zendesk2-1.2.2 spec/help_center/articles_spec.rb
zendesk2-1.2.1 spec/help_center/articles_spec.rb
zendesk2-1.2.0 spec/help_center/articles_spec.rb