From c5fdcf6e9261809e1e3e3738e85fa52f9115e5ae Mon Sep 17 00:00:00 2001 From: Ayush Poddar Date: Sun, 30 Apr 2023 02:43:55 +0530 Subject: [PATCH] relevant feature spec --- spec/color_ls/flags_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) 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