From 07ebb951368ed31bdaebc2e820c62ced22c8bbe4 Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Tue, 27 Nov 2007 08:06:51 -0800 Subject: added Matthias and Simon to credits for the gitrb code fixed an issue with raw object tree formatting added ls_tree implementation in raw git --- tests/units/test_lib.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/units/test_lib.rb') diff --git a/tests/units/test_lib.rb b/tests/units/test_lib.rb index f9170e6..7cbbeef 100644 --- a/tests/units/test_lib.rb +++ b/tests/units/test_lib.rb @@ -102,6 +102,15 @@ class TestLib < Test::Unit::TestCase assert_equal('+refs/heads/*:refs/remotes/working/*', config['fetch']) end + + def test_ls_tree + tree = @lib.ls_tree('94c827875e2cadb8bc8d4cdd900f19aa9e8634c7') + assert_equal("3aac4b445017a8fc07502670ec2dbf744213dd48", tree['blob']['example.txt'][:sha]) + assert_equal("100644", tree['blob']['example.txt'][:mode]) + assert(tree['tree']) + end + + # options this will accept # :treeish # :path_limiter -- cgit