Sha256: 72441569d3ba18b5eaee88700095a8367fc0b736b86c1b31761e2eda67d7bd63

Contents?: true

Size: 541 Bytes

Versions: 1

Compression:

Stored size: 541 Bytes

Contents

require File.dirname(__FILE__) + "/spec_helper"

describe Users do
  before(:each) do
    @client = Client.new
  end

  it "retrieves users" do
    result = @client.users.fetch
    result.should respond_to(:users)
    result.page.should == 1
  end

  it "retrieves Dan Seaver" do
    result = @client.users.fetch(:id => 53587)
    result.users.first.display_name.should == 'Dan Seaver'
  end

  it "retrieves multiple users by an array of ids" do
    result = @client.users.fetch(:id => [53587,22656])
    result.total.should == 2
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyoverflow-2.0.2.pre1 spec/users_spec.rb