Sha256: aade640e9afba34d86911c1e49bdd0cfcc53945d3ecaa716c716d74d2d96bb74
Contents?: true
Size: 913 Bytes
Versions: 1
Compression:
Stored size: 913 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 describe 'String#__nanoc_checksum' do it 'should work on empty strings' do ''.__nanoc_checksum.must_equal 'PfY7essFItpoXa1f6EuB/deyUmQ=' end it 'should work on all strings' do 'abc'.__nanoc_checksum.must_equal 'NkkYRO+25f6psNSeCYykXKCg3C0=' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.0.0b3 | test/base/core_ext/string_spec.rb |