mirror of
https://github.com/athityakumar/colorls.git
synced 2024-09-19 05:31:23 +02:00
improve the regex
This commit is contained in:
parent
81ced364a4
commit
69988e1b2e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue