Sha256: fd2b256bbd7158df29fbc932738e472dc54f3d51c03dd4368925e842c3a0466d

Contents?: true

Size: 531 Bytes

Versions: 11

Compression:

Stored size: 531 Bytes

Contents

require '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

11 entries across 11 versions & 1 rubygems

Version Path
zendesk_api-0.1.11 live/user_spec.rb
zendesk_api-0.1.10 live/user_spec.rb
zendesk_api-0.1.9 live/user_spec.rb
zendesk_api-0.1.8 live/user_spec.rb
zendesk_api-0.1.7 live/user_spec.rb
zendesk_api-0.1.6 live/user_spec.rb
zendesk_api-0.1.5 live/user_spec.rb
zendesk_api-0.1.4 live/user_spec.rb
zendesk_api-0.1.3 live/user_spec.rb
zendesk_api-0.1.2 live/user_spec.rb
zendesk_api-0.1.1 live/user_spec.rb