Skip to content

Commit d446314

Browse files
committed
Don't run binary file LineEndings spec on Windows
This test fails on Windows, and since I don't have access to a Windows machine I'm going to hide it in the interest of having a passing test suite, as this particular feature is pretty niche.
1 parent 717b2f4 commit d446314

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spec/overcommit/hook/pre_commit/line_endings_spec.rb

+5-3
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@
6161
end
6262
end
6363

64-
context 'when attempting to check a binary file' do
65-
let(:contents) { "\xFF\xD8\xFF\xE0\u0000\u0010JFIF" }
64+
unless Overcommit::OS.windows?
65+
context 'when attempting to check a binary file' do
66+
let(:contents) { "\xFF\xD8\xFF\xE0\u0000\u0010JFIF" }
6667

67-
it { should warn }
68+
it { should warn }
69+
end
6870
end
6971
end

0 commit comments

Comments
 (0)