Skip to content

Commit 3ed4333

Browse files
committed
Fix custom hooksPath test on Windows
This was breaking because Windows includes the drive letter in absolute paths: 1) Overcommit::GitConfig.hooks_path when explicitly set to an absolute path returns the absolute path Failure/Error: expect(subject).to eq '/etc/hooks' expected: "/etc/hooks" got: "C:/etc/hooks"
1 parent 3230a9b commit 3ed4333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/overcommit/git_config_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
end
6161

6262
it 'returns the absolute path' do
63-
expect(subject).to eq '/etc/hooks'
63+
expect(subject).to eq File.absolute_path('/etc/hooks')
6464
end
6565
end
6666

0 commit comments

Comments
 (0)