summaryrefslogtreecommitdiffstats
path: root/tests/units/test_log.rb
diff options
context:
space:
mode:
authorscott Chacon <schacon@agadorsparticus.(none)>2007-11-17 08:22:49 -0800
committerscott Chacon <schacon@agadorsparticus.(none)>2007-11-17 08:22:49 -0800
commitb0d47b3112b00cb6c1ae72d6d8a43e583af117ea (patch)
tree5d8094a62450a88ccc542a7a19e724004fdb8ca8 /tests/units/test_log.rb
parentba0f3cc565d051e79db634dbff1f1d4c71291461 (diff)
downloadthird_party-ruby-git-b0d47b3112b00cb6c1ae72d6d8a43e583af117ea.tar.gz
third_party-ruby-git-b0d47b3112b00cb6c1ae72d6d8a43e583af117ea.tar.xz
third_party-ruby-git-b0d47b3112b00cb6c1ae72d6d8a43e583af117ea.zip
significantly improved log performance
Diffstat (limited to 'tests/units/test_log.rb')
-rw-r--r--tests/units/test_log.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/units/test_log.rb b/tests/units/test_log.rb
index 7198b8a..5b41f39 100644
--- a/tests/units/test_log.rb
+++ b/tests/units/test_log.rb
@@ -32,13 +32,10 @@ class TestLog < Test::Unit::TestCase
end
def test_get_log_since_file
- l = @git.log.object('example.txt')
+ l = @git.log.path('example.txt')
assert_equal(30, l.size)
-
- l = @git.log.between('v2.5').object('example.txt')
- assert_equal(3, l.size)
- l = @git.log.between('v2.5', 'test').object('example.txt')
+ l = @git.log.between('v2.5', 'test').path('example.txt')
assert_equal(1, l.size)
end