Feature #4455 » unit-test-by-nodeid.diff
| test/unit/repository_mercurial_test.rb 火 7月 27 17:05:14 2010 +0900 → test/unit/repository_mercurial_test.rb 火 7月 27 17:07:59 2010 +0900 | ||
|---|---|---|
| 68 | 68 |       assert_nil @repository.scm.cat("sources/welcome_controller.rb") | 
| 69 | 69 | end | 
| 70 | 70 | |
| 71 | def test_entries_by_nodeid | |
| 72 |      assert_equal 2, @repository.entries("sources", '400bb8672109').size | |
| 73 |      assert_equal 1, @repository.entries("sources", 'b3a615152df8').size | |
| 74 | end | |
| 75 | ||
| 76 | def test_cat_by_nodeid | |
| 77 |      assert @repository.scm.cat("sources/welcome_controller.rb", '400bb8672109') | |
| 78 | end | |
| 79 | ||
| 71 | 80 | else | 
| 72 | 81 | puts "Mercurial test repository NOT FOUND. Skipping unit tests !!!" | 
| 73 | 82 | def test_fake; assert true end |