Sha256: 1e0bc17bf14270aa0fab0c6b5485d4c0e9c52e09f2f70cf675845278e13466c4
Contents?: true
Size: 400 Bytes
Versions: 34
Compression:
Stored size: 400 Bytes
Contents
require 'spec_helper' describe GroupDocs::Api::Helpers::Path do subject { GroupDocs::Storage::File.new } describe '#prepare_path' do it 'removes first / from string' do subject.send(:prepare_path, '/test').should == 'test' end it 'removes two or more / from string' do subject.send(:prepare_path, 'test1//test2///test3').should == 'test1/test2/test3' end end end
Version data entries
34 entries across 34 versions & 1 rubygems