From: Alec Henninger Date: Sat, 16 Jan 2016 16:55:25 +0000 (-0500) Subject: Add test for basename on path with scheme X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=1659d478b9981f9ef409540962e5694f7ed05172;p=puppet-stdlib.git Add test for basename on path with scheme --- diff --git a/spec/functions/basename_spec.rb b/spec/functions/basename_spec.rb index 0ea30e7..c84e192 100755 --- a/spec/functions/basename_spec.rb +++ b/spec/functions/basename_spec.rb @@ -10,4 +10,5 @@ describe 'basename' do it { is_expected.to run.with_params('relative_path/to/a/file.ext').and_return('file.ext') } it { is_expected.to run.with_params('/path/to/a/file.ext', '.ext').and_return('file') } it { is_expected.to run.with_params('relative_path/to/a/file.ext', '.ext').and_return('file') } + it { is_expected.to run.with_params('scheme:///path/to/a/file.ext').and_return('file.ext') } end