Sha256: 890bf944a33629296befa1f934ce755f997e48cf8b93c2205e2a5aadb4c31ae6
Contents?: true
Size: 646 Bytes
Versions: 39
Compression:
Stored size: 646 Bytes
Contents
describe 'String#__nanoc_cleaned_identifier' do it 'should not convert already clean paths' do '/foo/bar/'.__nanoc_cleaned_identifier.must_equal '/foo/bar/' end it 'should prepend slash if necessary' do 'foo/bar/'.__nanoc_cleaned_identifier.must_equal '/foo/bar/' end it 'should append slash if necessary' do '/foo/bar'.__nanoc_cleaned_identifier.must_equal '/foo/bar/' end it 'should remove double slashes at start' do '//foo/bar/'.__nanoc_cleaned_identifier.must_equal '/foo/bar/' end it 'should remove double slashes at end' do '/foo/bar//'.__nanoc_cleaned_identifier.must_equal '/foo/bar/' end end
Version data entries
39 entries across 39 versions & 1 rubygems