spec fix: not more than 3 lines in the spec output

This commit is contained in:
Ayush Poddar 2023-04-26 18:42:22 +05:30
parent 03ebc748ad
commit 5f3b8807d3

View file

@ -30,7 +30,7 @@ RSpec.describe ColorLS::Flags do
it 'displays multiple files per line' do
allow($stdout).to receive(:tty?).and_return(true)
expect { subject }.not_to output(/(.*\n){3}/).to_stdout
expect { subject }.not_to output(/(.*\n){4}/).to_stdout
end
it('does not display ./ or ../') { expect { subject }.not_to output(%r(\.{1,2}/)).to_stdout }