octokit 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemtest +0 -0
- data/Rakefile +1 -0
- data/lib/octokit/configuration.rb +23 -9
- data/lib/octokit/version.rb +1 -1
- data/octokit.gemspec +2 -2
- metadata +7 -131
- data/test/fixtures/blob.json +0 -10
- data/test/fixtures/branch_commits.json +0 -48
- data/test/fixtures/branches.json +0 -6
- data/test/fixtures/close_issue.json +0 -1
- data/test/fixtures/collaborators.json +0 -1
- data/test/fixtures/comment.json +0 -1
- data/test/fixtures/commits.json +0 -824
- data/test/fixtures/contributors.json +0 -6
- data/test/fixtures/emails.json +0 -1
- data/test/fixtures/followers.json +0 -3
- data/test/fixtures/full_user.json +0 -27
- data/test/fixtures/issue.json +0 -14
- data/test/fixtures/issues.json +0 -50
- data/test/fixtures/keys.json +0 -1
- data/test/fixtures/labels.json +0 -1
- data/test/fixtures/languages.json +0 -1
- data/test/fixtures/network.json +0 -26
- data/test/fixtures/network_data.json +0 -1
- data/test/fixtures/network_meta.json +0 -109
- data/test/fixtures/open_issue.json +0 -1
- data/test/fixtures/raw_git_data.yaml +0 -7
- data/test/fixtures/reopen_issue.json +0 -1
- data/test/fixtures/repo.json +0 -14
- data/test/fixtures/repo_search.json +0 -452
- data/test/fixtures/repos.json +0 -830
- data/test/fixtures/search-email.json +0 -19
- data/test/fixtures/search-username.json +0 -44
- data/test/fixtures/show_commit.json +0 -37
- data/test/fixtures/tags.json +0 -8
- data/test/fixtures/timeline.json +0 -1018
- data/test/fixtures/trees.json +0 -140
- data/test/fixtures/user.json +0 -16
- data/test/helper.rb +0 -59
- data/test/octokit_test.rb +0 -789
- data/test/repository_test.rb +0 -45
data/test/repository_test.rb
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
require File.expand_path(File.dirname(__FILE__) + '/helper')
|
2
|
-
|
3
|
-
class RepoTest < Test::Unit::TestCase
|
4
|
-
context "when passed a string containg a forward slash" do
|
5
|
-
setup do
|
6
|
-
@repo = Octokit::Repository.new("pengwynn/linkedin")
|
7
|
-
end
|
8
|
-
|
9
|
-
should "set the username and repo name" do
|
10
|
-
@repo.name.should == "linkedin"
|
11
|
-
@repo.username.should == "pengwynn"
|
12
|
-
end
|
13
|
-
|
14
|
-
should "respond to user and repo" do
|
15
|
-
@repo.repo.should == "linkedin"
|
16
|
-
@repo.user.should == "pengwynn"
|
17
|
-
end
|
18
|
-
|
19
|
-
should "render slug as string" do
|
20
|
-
@repo.slug.should == "pengwynn/linkedin"
|
21
|
-
@repo.to_s.should == @repo.slug
|
22
|
-
end
|
23
|
-
|
24
|
-
should "render url as string" do
|
25
|
-
@repo.url.should == 'https://github.com/pengwynn/linkedin'
|
26
|
-
end
|
27
|
-
|
28
|
-
end
|
29
|
-
|
30
|
-
context "when passed a hash" do
|
31
|
-
should "should set username and repo" do
|
32
|
-
repo = Octokit::Repository.new({:username => 'pengwynn', :name => 'linkedin'})
|
33
|
-
repo.name.should == "linkedin"
|
34
|
-
repo.username.should == "pengwynn"
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
context "when passed a Repo" do
|
39
|
-
should "set username and repo" do
|
40
|
-
repo = Octokit::Repository.new(Octokit::Repository.new('pengwynn/linkedin'))
|
41
|
-
repo.name.should == "linkedin"
|
42
|
-
repo.username.should == "pengwynn"
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|