dancroak-le-git 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,73 @@
1
+ require File.join(File.dirname(__FILE__), '/test_helper.rb')
2
+
3
+ class GitHubUserTest < Test::Unit::TestCase
4
+ context "A lookedup GitHub::User" do
5
+ setup do
6
+ FakeWeb.register_uri('http://github.com/api/v1/xml/technicalpickles', :response => File.join(File.dirname(__FILE__), 'fixtures', 'user.xml'))
7
+
8
+ @user = GitHub::User.find('technicalpickles')
9
+ end
10
+
11
+ test "#name" do
12
+ @user.name.should == "Josh Nichols"
13
+ end
14
+
15
+ test "#blog" do
16
+ @user.blog.should == "http://technicalpickles.com"
17
+ end
18
+
19
+ test "#login" do
20
+ @user.login.should == "technicalpickles"
21
+ end
22
+
23
+ test "#email" do
24
+ @user.email.should == "josh@technicalpickles.com"
25
+ end
26
+
27
+ test "#location" do
28
+ @user.location.should == "Boston, MA"
29
+ end
30
+
31
+ test "#repositories size" do
32
+ @user.repositories.size.should == 39
33
+ end
34
+
35
+ context "#repositories first" do
36
+ setup do
37
+ @repository = @user.repositories.first
38
+ end
39
+
40
+ test "#owner" do
41
+ @repository.owner == "technicalpickles"
42
+ end
43
+
44
+ test "#forks" do
45
+ @repository.forks == 0
46
+ end
47
+
48
+ test "#description" do
49
+ @repository.name == "ambitious-sphinx"
50
+ end
51
+
52
+ test "#private" do
53
+ @repository.private.should == false
54
+ end
55
+
56
+ test "#url" do
57
+ @repository.url == "http://github.com/technicalpickles/ambitious-sphinx"
58
+ end
59
+
60
+ test "#watchers" do
61
+ @repository.watchers == 11
62
+ end
63
+
64
+ test "#fork" do
65
+ @repository.fork == false
66
+ end
67
+
68
+ test "#homepage" do
69
+ @repository.homepage == ""
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,20 @@
1
+ require 'test/unit'
2
+ require 'rubygems'
3
+ require 'fake_web'
4
+ require 'quietbacktrace'
5
+ require 'redgreen'
6
+
7
+ FakeWeb.allow_net_connect = false
8
+
9
+ CONTEXT_NOISE = %w(context)
10
+
11
+ backtrace_cleaner = QuietBacktrace::BacktraceCleaner.new
12
+ backtrace_cleaner.add_silencer { |line| line.include?(CONTEXT_NOISE) }
13
+
14
+ require 'context'
15
+ require 'matchy'
16
+ require 'pending'
17
+
18
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib') )
19
+ require 'le_git'
20
+
metadata ADDED
@@ -0,0 +1,92 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dancroak-le-git
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Josh Nichols
8
+ - Dan Croak
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2009-05-25 00:00:00 -07:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: rest-client
18
+ type: :runtime
19
+ version_requirement:
20
+ version_requirements: !ruby/object:Gem::Requirement
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: "0"
25
+ version:
26
+ - !ruby/object:Gem::Dependency
27
+ name: happymapper
28
+ type: :runtime
29
+ version_requirement:
30
+ version_requirements: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: "0"
35
+ version:
36
+ description: TODO
37
+ email: josh@technicalpickles.com
38
+ executables: []
39
+
40
+ extensions: []
41
+
42
+ extra_rdoc_files:
43
+ - LICENSE
44
+ - README.textile
45
+ files:
46
+ - LICENSE
47
+ - README.textile
48
+ - Rakefile
49
+ - VERSION.yml
50
+ - lib/le_git.rb
51
+ - lib/le_git/commit.rb
52
+ - lib/le_git/repository.rb
53
+ - lib/le_git/user.rb
54
+ - test/fixtures/commit.xml
55
+ - test/fixtures/commits.xml
56
+ - test/fixtures/search.xml
57
+ - test/fixtures/user.xml
58
+ - test/github_commit_test.rb
59
+ - test/github_repository_test.rb
60
+ - test/github_user_test.rb
61
+ - test/test_helper.rb
62
+ has_rdoc: false
63
+ homepage: http://github.com/dancroak/le-git
64
+ post_install_message:
65
+ rdoc_options:
66
+ - --charset=UTF-8
67
+ require_paths:
68
+ - lib
69
+ required_ruby_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: "0"
74
+ version:
75
+ required_rubygems_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: "0"
80
+ version:
81
+ requirements: []
82
+
83
+ rubyforge_project:
84
+ rubygems_version: 1.2.0
85
+ signing_key:
86
+ specification_version: 3
87
+ summary: TODO
88
+ test_files:
89
+ - test/github_commit_test.rb
90
+ - test/github_repository_test.rb
91
+ - test/github_user_test.rb
92
+ - test/test_helper.rb