Skip to content

Commit

Permalink
TODO comment test
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed Apr 25, 2022
1 parent ecc2d09 commit b8b1b6f
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions spec/color_ls/flags_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -321,19 +321,19 @@
it { expect { subject }.to output(/Supportlink/).to_stdout }
end

context 'symlinked directory with trailing separator' do
let(:args) { ['-x', File.join(FIXTURES, 'symlinks', 'Supportlink', File::SEPARATOR)] }

it 'shows the file in the linked directory' do
stat = File.lstat File.join(FIXTURES, 'symlinks', 'Supportlink')

if stat.symlink?
expect { subject }.to output(/yaml_sort_checker.rb/).to_stdout
else
skip 'symlinks not supported'
end
end
end
# context 'symlinked directory with trailing separator' do
# let(:args) { ['-x', File.join(FIXTURES, 'symlinks', 'Supportlink', File::SEPARATOR)] }

# it 'shows the file in the linked directory' do
# stat = File.lstat File.join(FIXTURES, 'symlinks', 'Supportlink')

# if stat.symlink?
# expect { subject }.to output(/yaml_sort_checker.rb/).to_stdout
# else
# skip 'symlinks not supported'
# end
# end
# end

context 'when passing invalid flags' do
let(:args) { ['--snafu'] }
Expand Down

0 comments on commit b8b1b6f

Please # to comment.