Fix test running on CI with small terminal width

This commit is contained in:
Claudio Bley 2024-09-05 23:03:51 +02:00
parent 8708fa3d7d
commit 6679c38998

View file

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