Sha256: c3faa8c2737a9c7972ddf2bbd2671d698becdfcb97b15e0d712755775aeaadab
Contents?: true
Size: 664 Bytes
Versions: 22
Compression:
Stored size: 664 Bytes
Contents
require 'helper' 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
22 entries across 22 versions & 1 rubygems