From 69988e1b2e602502815c8cf7ae8096c648c4537d Mon Sep 17 00:00:00 2001 From: Ayush Poddar Date: Wed, 19 Apr 2023 16:48:38 +0530 Subject: [PATCH] improve the regex --- spec/color_ls/flags_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/color_ls/flags_spec.rb b/spec/color_ls/flags_spec.rb index c38d448..3797c30 100644 --- a/spec/color_ls/flags_spec.rb +++ b/spec/color_ls/flags_spec.rb @@ -144,7 +144,7 @@ RSpec.describe ColorLS::Flags do let(:args) { ['--long', '--non-human-readable', "#{FIXTURES}/two_megabyte_file.txt"] } it 'shows the file size in bytes' do - expect { subject }.to output(/#{2 * 1024 * 1024} B/).to_stdout + expect { subject }.to output(/#{2 * 1024 * 1024}\sB/).to_stdout end end