From e9166e8c15fc0f95c78afbd741d19dd7a05f1e26 Mon Sep 17 00:00:00 2001 From: bl7awy Date: Fri, 18 Mar 2022 23:41:36 +0300 Subject: [PATCH] Resolve long line offense --- spec/color_ls/flags_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/color_ls/flags_spec.rb b/spec/color_ls/flags_spec.rb index 6c03082b..99d76f7a 100644 --- a/spec/color_ls/flags_spec.rb +++ b/spec/color_ls/flags_spec.rb @@ -21,9 +21,12 @@ } it('does not display hidden files') { expect { subject }.not_to output(/\.hidden-file/).to_stdout } - it('does not show a report') { expect { subject }.not_to output(/(Found \d+ items in total\.)|(Folders: \d+, Files: \d+\.)/).to_stdout } it('displays dirs & files alphabetically') { expect { subject }.to output(/a-file.+symlinks.+z-file/m).to_stdout } + it 'does not show a report' do + expect { subject }.not_to output(/(Found \d+ items in total\.)|(Folders: \d+, Files: \d+\.)/).to_stdout + end + it 'displays multiple files per line' do allow($stdout).to receive(:tty?).and_return(true)