diff options
author | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-27 08:21:28 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-27 08:21:28 -0800 |
commit | 6a9db968e8563bc27b8f56f9d413159a2e14cf67 (patch) | |
tree | 5094084caae36283763eba7a1965f93ad159608a /tests | |
parent | 07ebb951368ed31bdaebc2e820c62ced22c8bbe4 (diff) | |
download | third_party-ruby-git-6a9db968e8563bc27b8f56f9d413159a2e14cf67.tar.gz third_party-ruby-git-6a9db968e8563bc27b8f56f9d413159a2e14cf67.tar.xz third_party-ruby-git-6a9db968e8563bc27b8f56f9d413159a2e14cf67.zip |
fixed issue with running a 'git log' with an object that won't rev-parse (file)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/units/test_log.rb | 3 | ||||
-rw-r--r-- | tests/units/test_raw_internals.rb | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/units/test_log.rb b/tests/units/test_log.rb index 11dcb27..7bcd83b 100644 --- a/tests/units/test_log.rb +++ b/tests/units/test_log.rb @@ -1,10 +1,11 @@ #!/usr/bin/env ruby - +require 'logger' require File.dirname(__FILE__) + '/../test_helper' class TestLog < Test::Unit::TestCase def setup set_file_paths + #@git = Git.open(@wdir, :log => Logger.new(STDOUT)) @git = Git.open(@wdir) end diff --git a/tests/units/test_raw_internals.rb b/tests/units/test_raw_internals.rb index 03a7916..b37a66d 100644 --- a/tests/units/test_raw_internals.rb +++ b/tests/units/test_raw_internals.rb @@ -22,8 +22,7 @@ class TestRawInternals < Test::Unit::TestCase end def test_commit_object - g = Git.bare(@wbare, :log => Logger.new(STDOUT)) - + g = Git.bare(@wbare) c = g.gcommit("v2.5") assert_equal('test', c.message) end @@ -34,7 +33,7 @@ class TestRawInternals < Test::Unit::TestCase sha = c.sha repo = Git::Raw::Repository.new(@wbare) - puts repo.object(sha).inspect + assert_equal('ex_dir', repo.object(sha).entry.first.name) end def t_log(g) |