@@ -34,7 +34,7 @@ def test_git_init
34
34
in_temp_dir do |path |
35
35
repo = Git . init ( path )
36
36
assert ( File . directory? ( File . join ( path , '.git' ) ) )
37
- assert ( File . exists ?( File . join ( path , '.git' , 'config' ) ) )
37
+ assert ( File . exist ?( File . join ( path , '.git' , 'config' ) ) )
38
38
assert_equal ( 'false' , repo . config ( 'core.bare' ) )
39
39
end
40
40
end
@@ -43,34 +43,34 @@ def test_git_init_bare
43
43
in_temp_dir do |path |
44
44
repo = Git . init ( path , :bare => true )
45
45
assert ( File . directory? ( File . join ( path , '.git' ) ) )
46
- assert ( File . exists ?( File . join ( path , '.git' , 'config' ) ) )
46
+ assert ( File . exist ?( File . join ( path , '.git' , 'config' ) ) )
47
47
assert_equal ( 'true' , repo . config ( 'core.bare' ) )
48
48
end
49
49
end
50
50
51
51
def test_git_init_remote_git
52
52
in_temp_dir do |dir |
53
- assert ( !File . exists ?( File . join ( dir , 'config' ) ) )
53
+ assert ( !File . exist ?( File . join ( dir , 'config' ) ) )
54
54
55
55
in_temp_dir do |path |
56
56
Git . init ( path , :repository => dir )
57
- assert ( File . exists ?( File . join ( dir , 'config' ) ) )
57
+ assert ( File . exist ?( File . join ( dir , 'config' ) ) )
58
58
end
59
59
end
60
60
end
61
61
62
62
def test_git_clone
63
63
in_temp_dir do |path |
64
64
g = Git . clone ( @wbare , 'bare-co' )
65
- assert ( File . exists ?( File . join ( g . repo . path , 'config' ) ) )
65
+ assert ( File . exist ?( File . join ( g . repo . path , 'config' ) ) )
66
66
assert ( g . dir )
67
67
end
68
68
end
69
69
70
70
def test_git_clone_bare
71
71
in_temp_dir do |path |
72
72
g = Git . clone ( @wbare , 'bare.git' , :bare => true )
73
- assert ( File . exists ?( File . join ( g . repo . path , 'config' ) ) )
73
+ assert ( File . exist ?( File . join ( g . repo . path , 'config' ) ) )
74
74
assert_nil ( g . dir )
75
75
end
76
76
end
@@ -79,7 +79,7 @@ def test_git_clone_config
79
79
in_temp_dir do |path |
80
80
g = Git . clone ( @wbare , 'config.git' , :config => "receive.denyCurrentBranch=ignore" )
81
81
assert_equal ( 'ignore' , g . config [ 'receive.denycurrentbranch' ] )
82
- assert ( File . exists ?( File . join ( g . repo . path , 'config' ) ) )
82
+ assert ( File . exist ?( File . join ( g . repo . path , 'config' ) ) )
83
83
assert ( g . dir )
84
84
end
85
85
end
0 commit comments