Sha256: 371c87e7241a39e360ed594a62a66486e48136b3d70e2f7708f0e77765081b55
Contents?: true
Size: 875 Bytes
Versions: 1
Compression:
Stored size: 875 Bytes
Contents
require 'helper' class TestUsers < Test::Unit::TestCase describe Users do before(:all) do @badges = Badges.retrieve_all set_api_key end it 'retrieves_all_users' do users = Users.retrieve_all single_item_set check_user_set users end it 'get_next_set' do users = Users.retrieve_all single_item_set users = users.get_next_set check_user_set users users.page.should == 2 end it 'retrieves by id' do users = Users.retrieve_by_id 53587, single_item_set check_user_set users end it 'retrieve_by_badge' do users = Users.retrieve_by_badge @badges.badges.first.badge_id, single_item_set check_user_set users end it 'retrieve_moderators' do users = Users.retrieve_moderators single_item_set check_user_set users end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyoverflow-1.0.2 | test/test_users.rb |