Skip to content

Commit 3093a88

Browse files
jawshooahsds
authored andcommitted
Skip template-dir symlink tests on Windows
1 parent fa75a1d commit 3093a88

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

spec/integration/installing_overcommit_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
if Overcommit::OS.windows?
1313
# Symlinks in template-dir are not compatible with Windows.
1414
# Windows users will need to manually install Overcommit for now.
15-
skip
15+
skip 'Unix symlinks not compatible with Windows'
1616
end
1717

1818
Overcommit::Utils.supported_hook_types.each do |hook_type|

spec/integration/template_dir_spec.rb

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
end
1818

1919
it 'contains all other hooks as symlinks to the master hook' do
20+
if Overcommit::OS.windows?
21+
# Symlinks in template-dir are not compatible with Windows.
22+
# Windows users will need to manually install Overcommit for now.
23+
skip 'Unix symlinks not compatible with Windows'
24+
end
25+
2026
Overcommit::Utils.supported_hook_types.each do |hook_type|
2127
File.symlink?(File.join(hooks_dir, hook_type)).should == true
2228
end

0 commit comments

Comments
 (0)