Merge pull request #567 from alechenninger/add-test-for-basename-with-scheme

Add test for basename on path with scheme
This commit is contained in:
David Schmitt 2016-01-18 09:23:51 +00:00
commit e5be901e0e

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