Sha256: 0c9421276d5d6c82d7d7d1865668057daf4a8acd3174320c1a16bb1fd01f7ed4
Contents?: true
Size: 702 Bytes
Versions: 17
Compression:
Stored size: 702 Bytes
Contents
# frozen_string_literal: true describe 'String#__nanoc_cleaned_identifier' do it 'should not convert already clean paths' do expect('/foo/bar/'.__nanoc_cleaned_identifier).to eql('/foo/bar/') end it 'should prepend slash if necessary' do expect('foo/bar/'.__nanoc_cleaned_identifier).to eql('/foo/bar/') end it 'should append slash if necessary' do expect('/foo/bar'.__nanoc_cleaned_identifier).to eql('/foo/bar/') end it 'should remove double slashes at start' do expect('//foo/bar/'.__nanoc_cleaned_identifier).to eql('/foo/bar/') end it 'should remove double slashes at end' do expect('/foo/bar//'.__nanoc_cleaned_identifier).to eql('/foo/bar/') end end
Version data entries
17 entries across 17 versions & 1 rubygems