octokit 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. data/.gemtest +0 -0
  2. data/Rakefile +1 -0
  3. data/lib/octokit/configuration.rb +23 -9
  4. data/lib/octokit/version.rb +1 -1
  5. data/octokit.gemspec +2 -2
  6. metadata +7 -131
  7. data/test/fixtures/blob.json +0 -10
  8. data/test/fixtures/branch_commits.json +0 -48
  9. data/test/fixtures/branches.json +0 -6
  10. data/test/fixtures/close_issue.json +0 -1
  11. data/test/fixtures/collaborators.json +0 -1
  12. data/test/fixtures/comment.json +0 -1
  13. data/test/fixtures/commits.json +0 -824
  14. data/test/fixtures/contributors.json +0 -6
  15. data/test/fixtures/emails.json +0 -1
  16. data/test/fixtures/followers.json +0 -3
  17. data/test/fixtures/full_user.json +0 -27
  18. data/test/fixtures/issue.json +0 -14
  19. data/test/fixtures/issues.json +0 -50
  20. data/test/fixtures/keys.json +0 -1
  21. data/test/fixtures/labels.json +0 -1
  22. data/test/fixtures/languages.json +0 -1
  23. data/test/fixtures/network.json +0 -26
  24. data/test/fixtures/network_data.json +0 -1
  25. data/test/fixtures/network_meta.json +0 -109
  26. data/test/fixtures/open_issue.json +0 -1
  27. data/test/fixtures/raw_git_data.yaml +0 -7
  28. data/test/fixtures/reopen_issue.json +0 -1
  29. data/test/fixtures/repo.json +0 -14
  30. data/test/fixtures/repo_search.json +0 -452
  31. data/test/fixtures/repos.json +0 -830
  32. data/test/fixtures/search-email.json +0 -19
  33. data/test/fixtures/search-username.json +0 -44
  34. data/test/fixtures/show_commit.json +0 -37
  35. data/test/fixtures/tags.json +0 -8
  36. data/test/fixtures/timeline.json +0 -1018
  37. data/test/fixtures/trees.json +0 -140
  38. data/test/fixtures/user.json +0 -16
  39. data/test/helper.rb +0 -59
  40. data/test/octokit_test.rb +0 -789
  41. data/test/repository_test.rb +0 -45
@@ -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