rubyoverflow 1.0.2 → 2.0.2.pre1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/.rvmrc +47 -0
- data/.travis.yml +5 -0
- data/Gemfile +2 -0
- data/LICENSE +1 -1
- data/README.rdoc +14 -20
- data/RELEASENOTES +1 -97
- data/Rakefile +7 -49
- data/lib/rubyoverflow.rb +46 -108
- data/lib/rubyoverflow/answers.rb +5 -57
- data/lib/rubyoverflow/base.rb +21 -68
- data/lib/rubyoverflow/questions.rb +5 -101
- data/lib/rubyoverflow/sites.rb +18 -0
- data/lib/rubyoverflow/stats.rb +8 -0
- data/lib/rubyoverflow/users.rb +5 -70
- data/lib/rubyoverflow/version.rb +3 -0
- data/rubyoverflow.gemspec +26 -0
- data/spec/answers_spec.rb +13 -0
- data/spec/questions_spec.rb +13 -0
- data/spec/sites_spec.rb +18 -0
- data/spec/spec_helper.rb +3 -0
- data/spec/stats_spec.rb +12 -0
- data/spec/users_spec.rb +23 -0
- metadata +94 -121
- data/VERSION +0 -1
- data/lib/rubyoverflow/answer.rb +0 -61
- data/lib/rubyoverflow/apiSite.rb +0 -32
- data/lib/rubyoverflow/apiSites.rb +0 -25
- data/lib/rubyoverflow/apiVersion.rb +0 -6
- data/lib/rubyoverflow/badge.rb +0 -44
- data/lib/rubyoverflow/badgeCounts.rb +0 -22
- data/lib/rubyoverflow/badges.rb +0 -59
- data/lib/rubyoverflow/comment.rb +0 -41
- data/lib/rubyoverflow/comments.rb +0 -115
- data/lib/rubyoverflow/errors.rb +0 -17
- data/lib/rubyoverflow/pagedBase.rb +0 -27
- data/lib/rubyoverflow/pagedDash.rb +0 -7
- data/lib/rubyoverflow/postTimelineEvent.rb +0 -93
- data/lib/rubyoverflow/postTimelineEvents.rb +0 -39
- data/lib/rubyoverflow/question.rb +0 -110
- data/lib/rubyoverflow/repChange.rb +0 -34
- data/lib/rubyoverflow/repChanges.rb +0 -41
- data/lib/rubyoverflow/revision.rb +0 -62
- data/lib/rubyoverflow/revisions.rb +0 -52
- data/lib/rubyoverflow/statistics.rb +0 -57
- data/lib/rubyoverflow/styling.rb +0 -19
- data/lib/rubyoverflow/tag.rb +0 -27
- data/lib/rubyoverflow/tags.rb +0 -46
- data/lib/rubyoverflow/user.rb +0 -181
- data/lib/rubyoverflow/userTimelineEvent.rb +0 -43
- data/lib/rubyoverflow/userTimelineEvents.rb +0 -35
- data/test/apiKey.rb +0 -5
- data/test/helper.rb +0 -159
- data/test/test_answer.rb +0 -20
- data/test/test_answers.rb +0 -32
- data/test/test_badge.rb +0 -18
- data/test/test_badges.rb +0 -30
- data/test/test_base.rb +0 -63
- data/test/test_statistics.rb +0 -26
- data/test/test_user.rb +0 -56
- data/test/test_users.rb +0 -37
data/test/test_users.rb
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
class TestUsers < Test::Unit::TestCase
|
4
|
-
describe Users do
|
5
|
-
before(:all) do
|
6
|
-
@badges = Badges.retrieve_all
|
7
|
-
set_api_key
|
8
|
-
end
|
9
|
-
|
10
|
-
it 'retrieves_all_users' do
|
11
|
-
users = Users.retrieve_all single_item_set
|
12
|
-
check_user_set users
|
13
|
-
end
|
14
|
-
|
15
|
-
it 'get_next_set' do
|
16
|
-
users = Users.retrieve_all single_item_set
|
17
|
-
users = users.get_next_set
|
18
|
-
check_user_set users
|
19
|
-
users.page.should == 2
|
20
|
-
end
|
21
|
-
|
22
|
-
it 'retrieves by id' do
|
23
|
-
users = Users.retrieve_by_id 53587, single_item_set
|
24
|
-
check_user_set users
|
25
|
-
end
|
26
|
-
|
27
|
-
it 'retrieve_by_badge' do
|
28
|
-
users = Users.retrieve_by_badge @badges.badges.first.badge_id, single_item_set
|
29
|
-
check_user_set users
|
30
|
-
end
|
31
|
-
|
32
|
-
it 'retrieve_moderators' do
|
33
|
-
users = Users.retrieve_moderators single_item_set
|
34
|
-
check_user_set users
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|