diff --git a/spec/color_ls/flags_spec.rb b/spec/color_ls/flags_spec.rb index 75bef0f..d09b1f6 100644 --- a/spec/color_ls/flags_spec.rb +++ b/spec/color_ls/flags_spec.rb @@ -486,4 +486,12 @@ RSpec.describe ColorLS::Flags do expect { subject }.not_to output(/128/).to_stdout end end + + context 'when argument is a file with relative path' do + let(:args) { ["#{FIXTURES}/a.txt"] } + + it 'replicates the filepath provided in the argument' do + expect { subject }.to output(/#{args.first}/).to_stdout + end + end end