mirror of
https://github.com/athityakumar/colorls.git
synced 2024-09-19 05:31:23 +02:00
Fix test running on CI with small terminal width
This commit is contained in:
parent
8708fa3d7d
commit
6679c38998
1 changed files with 1 additions and 1 deletions
|
@ -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 }
|
||||||
|
|
Loading…
Reference in a new issue