diff options
author | David Schmitt <david.schmitt@puppetlabs.com> | 2016-01-18 09:23:51 +0000 |
---|---|---|
committer | David Schmitt <david.schmitt@puppetlabs.com> | 2016-01-18 09:23:51 +0000 |
commit | e5be901e0e129a5b9d568bc4d7d495397c007a5c (patch) | |
tree | 62f44fd96b0c79dcf8b3c33e857b750ee9174f31 | |
parent | 4eba9364f1bba6eab447079fcee7f6673b95fede (diff) | |
parent | 1659d478b9981f9ef409540962e5694f7ed05172 (diff) | |
download | puppet-stdlib-e5be901e0e129a5b9d568bc4d7d495397c007a5c.tar.gz puppet-stdlib-e5be901e0e129a5b9d568bc4d7d495397c007a5c.tar.bz2 |
Merge pull request #567 from alechenninger/add-test-for-basename-with-scheme
Add test for basename on path with scheme
-rwxr-xr-x | spec/functions/basename_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |