diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-05-27 13:21:58 +0200 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-05-27 13:21:58 +0200 |
commit | 2e11e703824ea49725ce571d3317acacfd4e9209 (patch) | |
tree | 1b191beb4d593dacaf578bfa218479c39e9c9bee /vcs_test.rb | |
parent | 0eb5d613713942e0eac9fbcaf69ae7d73a2921b5 (diff) |
fix unittests
Diffstat (limited to 'vcs_test.rb')
-rw-r--r-- | vcs_test.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/vcs_test.rb b/vcs_test.rb index 9881fb5..91b6609 100644 --- a/vcs_test.rb +++ b/vcs_test.rb @@ -20,6 +20,10 @@ if __FILE__ == $0 require "test/unit" require "pp" +unless ARGV[0] + puts "Usage: ruby #{$0} (git|bzr)" + exit +end require ARGV[0] require "benchmark" @@ -41,8 +45,9 @@ class VCS_test < Test::Unit::TestCase @t = "" end def teardown - Dir.chdir("/") - `rm -rf #{@repo}` + puts @repo +# Dir.chdir("/") +# `rm -rf #{@repo}` puts "#{@t}: #{@b}" end def test_cat @@ -68,6 +73,8 @@ class VCS_test < Test::Unit::TestCase @b += Benchmark.measure{ l = VCS.history }.total + pp l + exit assert_equal(@data.size,l.size) @history.each_with_index{|h,revminusone| assert_equal(h,l[revminusone+1].comment) |