Sha256: da901095c5914f3f60ed09dda31c906078ca6ab052eaf9bf9fad446b2b75f4a1

Contents?: true

Size: 380 Bytes

Versions: 17

Compression:

Stored size: 380 Bytes

Contents

require 'spec_helper'

describe "groups" do
  let(:client) { create_client }
  it_should_behave_like "a resource", :groups,
    lambda { {name: Zendesk2.uuid} },
    lambda { {name: Zendesk2.uuid} }

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

    client.groups.assignable.should be_all{|g| !g.deleted}
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
zendesk2-0.4.4 spec/groups_spec.rb
zendesk2-0.4.3 spec/groups_spec.rb
zendesk2-0.4.2 spec/groups_spec.rb
zendesk2-0.4.1 spec/groups_spec.rb
zendesk2-0.4.0 spec/groups_spec.rb
zendesk2-0.3.2 spec/groups_spec.rb
zendesk2-0.3.1 spec/groups_spec.rb
zendesk2-0.3.0 spec/groups_spec.rb
zendesk2-0.2.7 spec/groups_spec.rb
zendesk2-0.2.6 spec/groups_spec.rb
zendesk2-0.2.5 spec/groups_spec.rb
zendesk2-0.2.4 spec/groups_spec.rb
zendesk2-0.2.3 spec/groups_spec.rb
zendesk2-0.2.2 spec/groups_spec.rb
zendesk2-0.2.1 spec/groups_spec.rb
zendesk2-0.2.0 spec/groups_spec.rb
zendesk2-0.1.3 spec/groups_spec.rb