From caeca628561ecf3c9d9c23b3ea9baf3865b9900d Mon Sep 17 00:00:00 2001 From: Austin Ziegler Date: Tue, 23 Jun 2020 23:12:09 -0400 Subject: Fix filename substitution --- spec/ldiff_spec.rb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/spec/ldiff_spec.rb b/spec/ldiff_spec.rb index eee6d86..74bb92d 100644 --- a/spec/ldiff_spec.rb +++ b/spec/ldiff_spec.rb @@ -10,7 +10,7 @@ RSpec.describe 'bin/ldiff' do let(:output_diff_e) { read_fixture('-e') } let(:output_diff_f) { read_fixture('-f') } let(:output_diff_u) { read_fixture('-u') } - let(:output_diff_chef) { read_fixture('-u', base: 'output.diff.chef')} + let(:output_diff_chef) { read_fixture('-u', base: 'output.diff.chef') } specify do expect(run_ldiff('-u', left: 'old-chef', right: 'new-chef')).to eq(output_diff_chef) @@ -54,14 +54,15 @@ RSpec.describe 'bin/ldiff' do def clean_output_timestamp(data) data.gsub( %r{ - [-*+]{3} - \s - spec/fixtures/(\w+) - \s + ^ + [-+*]{3} + \s* + spec/fixtures/(\S+) + \s* \d{4}-\d\d-\d\d - \s + \s* \d\d:\d\d:\d\d(?:\.\d+) - \s + \s* (?:[-+]\d{4}|Z) }x, '*** spec/fixtures/\1 0000-00-00 00:00:00.000000000 -0000' -- cgit v1.2.1