File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -32,23 +32,24 @@ def create_temp_repo(clone_path)
32
32
33
33
def setup
34
34
@git = Git . open ( git_working_dir )
35
-
35
+
36
36
@commit = @git . object ( '1cc8667014381' )
37
37
@tree = @git . object ( '1cc8667014381^{tree}' )
38
38
@blob = @git . object ( 'v2.5:example.txt' )
39
-
39
+
40
40
@worktrees = @git . worktrees
41
41
end
42
-
42
+
43
43
def test_worktrees_all
44
44
assert ( @git . worktrees . is_a? ( Git ::Worktrees ) )
45
45
assert ( @git . worktrees . first . is_a? ( Git ::Worktree ) )
46
46
assert_equal ( @git . worktrees . size , 2 )
47
47
end
48
-
48
+
49
49
def test_worktrees_single
50
50
worktree = @git . worktrees . first
51
- assert_equal ( worktree . dir , @git . dir . to_s )
51
+ git_dir = Pathname . new ( @git . dir . to_s ) . realpath . to_s
52
+ assert_equal ( worktree . dir , git_dir )
52
53
assert_equal ( worktree . gcommit , SAMPLE_LAST_COMMIT )
53
54
end
54
55
You can’t perform that action at this time.
0 commit comments