]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Add test for basename on path with scheme
authorAlec Henninger <ahenning@redhat.com>
Sat, 16 Jan 2016 16:55:25 +0000 (11:55 -0500)
committerAlec Henninger <ahenning@redhat.com>
Sat, 16 Jan 2016 16:55:25 +0000 (11:55 -0500)
spec/functions/basename_spec.rb

index 0ea30e7a7e4e40383fca0eb968e7fb0e0bb72294..c84e192b296d55d0c7e075e1ed108d3ca7d02e0b 100755 (executable)
@@ -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