Add test for basename on path with scheme

This commit is contained in:
Alec Henninger 2016-01-16 11:55:25 -05:00
parent 4eba9364f1
commit 1659d478b9

View file

@ -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