We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27be99c commit b0b8ffdCopy full SHA for b0b8ffd
tests/units/test_repack.rb
@@ -3,20 +3,18 @@
3
require 'test_helper'
4
5
class TestRepack < Test::Unit::TestCase
6
- def test_repack
+ test 'should be able to call repack with the right args' do
7
in_bare_repo_clone do |r1|
8
new_file('new_file', 'new content')
9
-
10
r1.add
11
r1.commit('my commit')
12
13
- # see how big the repo is
14
- size1 = r1.repo_size
15
16
- r1.repack
+ # assert_nothing_raised { r1.repack }
17
18
- # see how big the repo is now, should be smaller
19
- assert(size1 > r1.repo_size)
+ expected_command_line = ['repack', '-a', '-d']
+ git_cmd = :repack
+ git_cmd_args = []
+ assert_command_line(expected_command_line, git_cmd, git_cmd_args)
20
end
21
22
0 commit comments