Sha256: 4bb625f201375f747d4d7b8f414eab5398d1d4f926a4b8ca0ffbfab1b96154f0

Contents?: true

Size: 577 Bytes

Versions: 14

Compression:

Stored size: 577 Bytes

Contents

require 'helper'

describe Desk::Client do
  context "Company" do

    let(:endpoint) { "company" }
    let(:id) { 1 }
    let(:check_key) { "name" }
    let(:check_value) { "Acme Inc" }

    include_context "basic configuration"

    it_behaves_like "a list endpoint"

    it_behaves_like "a show endpoint"

    it_behaves_like "a create endpoint", { :name => "Acme Inc" }

    it_behaves_like "an update endpoint", { :name => "Acme Enterprises" } do
      let(:check_value) { "Acme Enterprises" }
    end

    it_behaves_like "a search endpoint", { :q => "acme" }

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
desk-1.2.0 spec/desk/client/companies_spec.rb
desk-1.1.1 spec/desk/client/companies_spec.rb
desk-1.1.0 spec/desk/client/companies_spec.rb
desk-1.0.10 spec/desk/client/companies_spec.rb
desk-1.0.9 spec/desk/client/companies_spec.rb
desk-1.0.8 spec/desk/client/companies_spec.rb
desk-1.0.7 spec/desk/client/companies_spec.rb
desk-1.0.6 spec/desk/client/companies_spec.rb
desk-1.0.5 spec/desk/client/companies_spec.rb
desk-1.0.4 spec/desk/client/companies_spec.rb
desk-1.0.3 spec/desk/client/companies_spec.rb
desk-1.0.2 spec/desk/client/companies_spec.rb
desk-1.0.1 spec/desk/client/companies_spec.rb
desk-1.0.0 spec/desk/client/companies_spec.rb