Sha256: b4a7788c9d994eb5c14ff617fa58ba2e6ce8eff803fa30536285aafd1223e830

Contents?: true

Size: 460 Bytes

Versions: 26

Compression:

Stored size: 460 Bytes

Contents

require 'spec_helper'

describe "groups" do
  let(:client) { create_client }

  include_examples "zendesk resource", {
    :collection    => lambda { client.groups },
    :create_params => lambda { { name: mock_uuid } },
    :update_params => lambda { { name: mock_uuid } },
  }

  it "should list assignable groups" do
    client.groups.create(name: mock_uuid) # assignable by default

    expect(client.groups.assignable).to be_all{|g| !g.deleted}
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
zendesk2-1.6.1 spec/groups_spec.rb
zendesk2-1.5.17 spec/groups_spec.rb
zendesk2-1.5.16 spec/groups_spec.rb
zendesk2-1.5.15 spec/groups_spec.rb
zendesk2-1.5.14 spec/groups_spec.rb
zendesk2-1.5.13 spec/groups_spec.rb
zendesk2-1.5.12 spec/groups_spec.rb
zendesk2-1.5.11 spec/groups_spec.rb
zendesk2-1.5.10 spec/groups_spec.rb
zendesk2-1.5.9 spec/groups_spec.rb
zendesk2-1.5.8 spec/groups_spec.rb
zendesk2-1.5.7 spec/groups_spec.rb
zendesk2-1.5.6 spec/groups_spec.rb
zendesk2-1.5.5 spec/groups_spec.rb
zendesk2-1.5.4 spec/groups_spec.rb
zendesk2-1.5.3 spec/groups_spec.rb
zendesk2-1.4.2 spec/groups_spec.rb
zendesk2-1.4.1 spec/groups_spec.rb
zendesk2-1.4.0 spec/groups_spec.rb
zendesk2-1.3.3 spec/groups_spec.rb