Permalink
Browse files

Reorganized file structure. Fix repo commits.

  • Loading branch information...
technicalpickles committed Jun 12, 2009
1 parent 7a444da commit 5727fc6c5754e7a3149bca73195ca91ae78a760f
View
@@ -0,0 +1,10 @@
+require 'happymapper'
+require 'rest_client'
+
+module Github
+ autoload :User, 'le-git/user'
+ autoload :Repository, 'le-git/repository'
+ autoload :Commit, 'le-git/commit'
+ autoload :Parent, 'le-git/parent'
+ autoload :ApiResources, 'le-git/resources'
+end
File renamed without changes.
File renamed without changes.
@@ -18,7 +18,7 @@ def self.user(name)
end
def commits(branch = "master")
- Github::Commit.master(owner, name, branch)
+ Github::Commit.branch(owner, name, branch)
end
protected
File renamed without changes.
File renamed without changes.
View
@@ -1,10 +0,0 @@
-require 'happymapper'
-require 'rest_client'
-
-module Github
- autoload :User, 'le_git/user'
- autoload :Repository, 'le_git/repository'
- autoload :Commit, 'le_git/commit'
- autoload :Parent, 'le_git/parent'
- autoload :ApiResources, 'le_git/resources'
-end
View
@@ -1 +1 @@
-require 'le_git'
+require 'le-git'
@@ -85,13 +85,13 @@ class GithubRepositoryTest < Test::Unit::TestCase
test "#commits" do
commits = Object.new
- mock(Github::Commit).master(@repository.owner, @repository.name, 'master') { commits }
+ mock(Github::Commit).branch(@repository.owner, @repository.name, 'master') { commits }
@repository.commits.should == commits
end
test "#commits(redesign)" do
commits = Object.new
- mock(Github::Commit).master(@repository.owner, @repository.name, 'redesign') { commits }
+ mock(Github::Commit).branch(@repository.owner, @repository.name, 'redesign') { commits }
@repository.commits('redesign').should == commits
end
View
@@ -17,7 +17,7 @@
require 'rr'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib') )
-require 'le_git'
+require 'le-git'
class Test::Unit::TestCase
include RR::Adapters::TestUnit unless include?(RR::Adapters::TestUnit)

0 comments on commit 5727fc6

Please sign in to comment.