spec/mirror_spec.rb in braid-1.0.10 vs spec/mirror_spec.rb in braid-1.0.11
- old
+ new
@@ -8,9 +8,14 @@
it 'should default mirror to last path part, ignoring trailing .git' do
new_from_options('http://path.git')
@mirror.path.should == 'path'
end
+
+ it 'should strip trailing slash from specified path' do
+ new_from_options('http://path.git', 'path' => 'vendor/tools/mytool/')
+ @mirror.path.should == 'vendor/tools/mytool'
+ end
end
describe 'Braid::Mirror#diff' do
before(:each) do
@mirror = build_mirror('revision' => 'a' * 40, 'url' => 'git://path')