Sha256: 651ccf477d8c5832257ec617d002c4f0d810760c267d25875749af657e8de33e

Contents?: true

Size: 536 Bytes

Versions: 9

Compression:

Stored size: 536 Bytes

Contents

require 'core/spec_helper'

describe ZendeskAPI::User, :delete_after do
  def valid_attributes
    { :name => "Test U.", :email => "test@example.org" }
  end

  it_should_be_creatable
  it_should_be_updatable :name
  it_should_be_deletable :find => [:active?, false]
  it_should_be_readable :users
  it_should_be_readable organization, :users

  it "should be able to find by email" do
    VCR.use_cassette("user_find_by_email") do
      client.users.search(:query => current_user.email).to_a.should == [current_user]
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
zendesk_api-0.3.3 spec/live/user_spec.rb
zendesk_api-0.3.2 spec/live/user_spec.rb
zendesk_api-0.3.1 spec/live/user_spec.rb
zendesk_api-0.3.0 spec/live/user_spec.rb
zendesk_api-0.2.6 spec/live/user_spec.rb
zendesk_api-0.2.5 spec/live/user_spec.rb
zendesk_api-0.2.4 spec/live/user_spec.rb
zendesk_api-0.2.2 spec/live/user_spec.rb
zendesk_api-0.2.1 spec/live/user_spec.rb