diff options
author | Austin Ziegler <austin@zieglers.ca> | 2020-06-23 11:46:38 -0400 |
---|---|---|
committer | Austin Ziegler <austin@zieglers.ca> | 2020-06-23 11:46:38 -0400 |
commit | 5e03ff5343be4299d3785764c00df17b7bfafc37 (patch) | |
tree | 7544c86109b2917ef6c3ea15a126e4a77fcb2420 /spec | |
parent | a7a595e2d5d3b4658d21d33f3f62f7c85ee4c82b (diff) | |
download | diff-lcs-5e03ff5343be4299d3785764c00df17b7bfafc37.tar.gz |
Fix windows test failures
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ldiff_spec.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/spec/ldiff_spec.rb b/spec/ldiff_spec.rb index 6dfea29..bd3c1e9 100644 --- a/spec/ldiff_spec.rb +++ b/spec/ldiff_spec.rb @@ -36,12 +36,14 @@ RSpec.describe 'bin/ldiff' do end def clean_data(data, flag) - case flag - when '-c', '-u' - clean_output_timestamp(data) - else - data - end + data = + case flag + when '-c', '-u' + clean_output_timestamp(data) + else + data + end + data.gsub(/\r\n?/, "\n") end def clean_output_timestamp(data) |