Sha256: afdd2d8aa448d787c6fe5ec2393bbb65eea555f49fda6f478a4157fba52e69cb

Contents?: true

Size: 460 Bytes

Versions: 7

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

7 entries across 7 versions & 1 rubygems

Version Path
zendesk2-1.9.0 spec/groups_spec.rb
zendesk2-1.8.1 spec/groups_spec.rb
zendesk2-1.7.5 spec/groups_spec.rb
zendesk2-1.7.4 spec/groups_spec.rb
zendesk2-1.7.2 spec/groups_spec.rb
zendesk2-1.7.1 spec/groups_spec.rb
zendesk2-1.7.0 spec/groups_spec.rb