summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorscott Chacon <schacon@agadorsparticus.corp.reactrix.com>2007-11-14 11:00:59 -0800
committerscott Chacon <schacon@agadorsparticus.corp.reactrix.com>2007-11-14 11:00:59 -0800
commit0e5c33282be67ef2c8c124628b7eb1f46764fdd0 (patch)
treef88d460d89fab2d38d1976eca01defa94df5deee /tests
parentf13dfdd5f53d590378245c000c38b39ca1870ad7 (diff)
downloadthird_party-ruby-git-0e5c33282be67ef2c8c124628b7eb1f46764fdd0.zip
third_party-ruby-git-0e5c33282be67ef2c8c124628b7eb1f46764fdd0.tar.gz
third_party-ruby-git-0e5c33282be67ef2c8c124628b7eb1f46764fdd0.tar.xz
added name-rev support for commit objects
Diffstat (limited to 'tests')
-rw-r--r--tests/units/test_object.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/units/test_object.rb b/tests/units/test_object.rb
index 8b98e98..db04bd6 100644
--- a/tests/units/test_object.rb
+++ b/tests/units/test_object.rb
@@ -28,6 +28,10 @@ class TestObject < Test::Unit::TestCase
assert_equal('11-08-07', o.date.strftime("%m-%d-%y"))
assert_equal('test', o.message)
+ assert_equal('tags/v2.5', o.parent.name)
+ assert_equal('master', o.parent.parent.name)
+ assert_equal('master~1', o.parent.parent.parent.name)
+
o = @git.object('HEAD')
assert(o.is_a?(Git::Object::Commit))
assert_equal('commit', o.type)