Fix --inode check

The range of inodes is roughly 2 to 2^32 (depending on the filesystem).

The test failed on CI, since the inode number was a 6-digit number.
This commit is contained in:
Claudio Bley 2022-04-04 21:52:22 +02:00
parent 88fc35e02f
commit dbdcd142a0

View file

@ -374,8 +374,8 @@ RSpec.describe ColorLS::Flags do
context 'with --inode flag' do context 'with --inode flag' do
let(:args) { ['--inode', FIXTURES] } let(:args) { ['--inode', FIXTURES] }
it 'shows inode number' do it 'shows inode number before logo' do
expect { subject }.to output(/\d{7,}/).to_stdout expect { subject }.to output(/\d+ +[^ ]+ +a.md/).to_stdout
end end
end end