From dbdcd142a001180a954039481370a9d30cce811b Mon Sep 17 00:00:00 2001 From: Claudio Bley Date: Mon, 4 Apr 2022 21:52:22 +0200 Subject: [PATCH] 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. --- spec/color_ls/flags_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/color_ls/flags_spec.rb b/spec/color_ls/flags_spec.rb index 389e557..f08acb7 100644 --- a/spec/color_ls/flags_spec.rb +++ b/spec/color_ls/flags_spec.rb @@ -374,8 +374,8 @@ RSpec.describe ColorLS::Flags do context 'with --inode flag' do let(:args) { ['--inode', FIXTURES] } - it 'shows inode number' do - expect { subject }.to output(/\d{7,}/).to_stdout + it 'shows inode number before logo' do + expect { subject }.to output(/\d+ +[^ ]+ +a.md/).to_stdout end end