# HG changeset patch
# Parent 96e7aff32b9f3f27c4070bfa4d9af137c750ffaf
# User Toshi MARUYAMA <marutosijp2@gmail.com>
unit test by nodeid.

diff -r 96e7aff32b9f test/unit/repository_mercurial_test.rb
--- a/test/unit/repository_mercurial_test.rb	火  7月 27 17:05:14 2010 +0900
+++ b/test/unit/repository_mercurial_test.rb	火  7月 27 17:07:59 2010 +0900
@@ -68,6 +68,15 @@
       assert_nil @repository.scm.cat("sources/welcome_controller.rb")
     end
 
+   def test_entries_by_nodeid
+     assert_equal 2, @repository.entries("sources", '400bb8672109').size
+     assert_equal 1, @repository.entries("sources", 'b3a615152df8').size
+   end
+
+   def test_cat_by_nodeid
+     assert @repository.scm.cat("sources/welcome_controller.rb", '400bb8672109')
+   end
+
   else
     puts "Mercurial test repository NOT FOUND. Skipping unit tests !!!"
     def test_fake; assert true end
