mirror of
https://github.com/athityakumar/colorls.git
synced 2024-09-19 05:31:23 +02:00
Fix spec failure due to big directory size on travis
Listing the fixtures folder sorting by size, expected the files at the beginning followed by the `symlinks` folder. But on travis, the folder is 4KiB which is larger than any one of the files. Keep the folder first by adding the `--group-directories-first` flag.
This commit is contained in:
parent
127eb510cd
commit
8eb0089fc5
1 changed files with 2 additions and 2 deletions
|
@ -123,9 +123,9 @@ RSpec.describe ColorLS::Flags do
|
|||
end
|
||||
|
||||
context 'with --sort=size flag' do
|
||||
let(:args) { ['--sort=size', FIXTURES] }
|
||||
let(:args) { ['--sort=size', '--group-directories-first', FIXTURES] }
|
||||
|
||||
it { is_expected.to match(/a-file.+z-file.+symlinks/) } # sorts results by size
|
||||
it { is_expected.to match(/symlinks.+a-file.+z-file/) } # sorts results by size
|
||||
end
|
||||
|
||||
context 'with --sort=extension flag' do
|
||||
|
|
Loading…
Reference in a new issue