aboutsummaryrefslogtreecommitdiffstats
path: root/spec/cache/git_spec.rb
blob: 42c3ad57b96bb951745b6d45017c040f95999b13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require "spec_helper"
describe "bundle cache with git" do
  it "base_name should strip private repo uris" do
    source  = Bundler::Source::Git.new("uri" => "git@github.com:bundler.git")
    source.send(:base_name).should == "bundler"
  end

  it "base_name should strip network share paths" do
    source = Bundler::Source::Git.new("uri" => "//MachineName/ShareFolder")
    source.send(:base_name).should == "ShareFolder"
  end
 end