summaryrefslogtreecommitdiffstats
path: root/tests/units
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units')
-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)