colorls/spec/core_spec.rb
Claudio Bley 438aed19bd Fix long listing of files as arguments
The elements in `@contents` should only ever be names of directory entries.
Otherwise erroneous paths will be constructed with `@input/@content_entry`.

* add check to ensure that long listing prints information about `.hidden-file`

Fixes #104.
2017-08-21 08:42:02 +02:00

7 lines
233 B
Ruby

require 'spec_helper'
RSpec.describe ColorLS do
it 'lists info of a hidden file with --long option' do
expect { ColorLS::Flags.new('--long', 'spec/fixtures/.hidden-file').process }.to_not output(/No Info/).to_stdout
end
end