Sha256: aad730c5893889a457babde8375e8b74cfbd7db45a5a4e67cf7c2d32cecc0642
Contents?: true
Size: 535 Bytes
Versions: 1
Compression:
Stored size: 535 Bytes
Contents
require File.dirname(__FILE__) + "/spec_helper" describe Users do before(:each) do @client = Client.new end it "retrieves sites" do result = @client.users.fetch result.should respond_to(:users) result.page.should == 1 end it "retrieves phsr" 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-0.5 | spec/users_spec.rb |