Sha256: c1510230f4167b53bce4a98363a495d5214154e51bf40511d876d0d4ce45880a
Contents?: true
Size: 642 Bytes
Versions: 2
Compression:
Stored size: 642 Bytes
Contents
# encoding: utf-8 require 'test/helper' describe 'String#cleaned_identifier' do it 'should not convert already clean paths' do '/foo/bar/'.cleaned_identifier.must_equal '/foo/bar/' end it 'should prepend slash if necessary' do 'foo/bar/'.cleaned_identifier.must_equal '/foo/bar/' end it 'should append slash if necessary' do '/foo/bar'.cleaned_identifier.must_equal '/foo/bar/' end it 'should remove double slashes at start' do '//foo/bar/'.cleaned_identifier.must_equal '/foo/bar/' end it 'should remove double slashes at end' do '/foo/bar//'.cleaned_identifier.must_equal '/foo/bar/' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc3-3.1.9 | test/base/core_ext/string_spec.rb |
nanoc3-3.1.8 | test/base/core_ext/string_spec.rb |