summaryrefslogtreecommitdiff
path: root/spec/cache
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-01-24 12:49:56 -0800
committerAndre Arko <andre@arko.net>2015-01-25 23:30:30 -0800
commita1f1cc6bef69d96b6998f128a84a633595cffa15 (patch)
treebcca97c523023cb2a1599c709280414324bde156 /spec/cache
parent4dc8cf6c778d7aed0c020f1564cf93827e3b0403 (diff)
downloadbundler-a1f1cc6bef69d96b6998f128a84a633595cffa15.tar.gz
Revert "svn source support"
We're pulling out svn source support into a plugin. While we work on that, you can use the 1.8.0.svn release, but subversion sources aren't an official part of Bundler itself. This reverts commit 049d281d0fdcc29297a21c6a66cd7efc38690675. This reverts commit 22fecdd07fdf02edb1a8824fb73dd7e015507644. This reverts commit 38f195e11f37ce5139af4ff3384eb2f26c2edb19. This reverts commit 500436a33de0b884525dbf82cfc69332fc96f8b9. This reverts commit 2c356be90a23921058cd14fd0e4a366da195021a.
Diffstat (limited to 'spec/cache')
-rw-r--r--spec/cache/gems_spec.rb32
-rw-r--r--spec/cache/svn_spec.rb82
2 files changed, 0 insertions, 114 deletions
diff --git a/spec/cache/gems_spec.rb b/spec/cache/gems_spec.rb
index 9386164c6f..b70f62743a 100644
--- a/spec/cache/gems_spec.rb
+++ b/spec/cache/gems_spec.rb
@@ -151,38 +151,6 @@ describe "bundle cache" do
end
end
- describe "when there are also svn sources" do
- before do
- build_svn "foo"
- system_gems "rack-1.0.0"
-
- install_gemfile <<-G
- source "file://#{gem_repo1}"
- svn "file://#{lib_path("foo-1.0")}" do
- gem 'foo'
- end
- gem 'rack'
- G
- end
-
- it "still works" do
- bundle :cache
-
- system_gems []
- bundle "install --local"
-
- should_be_installed("rack 1.0.0", "foo 1.0")
- end
-
- it "should not explode if the lockfile is not present" do
- FileUtils.rm(bundled_app("Gemfile.lock"))
-
- bundle :cache
-
- expect(bundled_app("Gemfile.lock")).to exist
- end
- end
-
describe "when previously cached" do
before :each do
build_repo2
diff --git a/spec/cache/svn_spec.rb b/spec/cache/svn_spec.rb
deleted file mode 100644
index e798e0e9a2..0000000000
--- a/spec/cache/svn_spec.rb
+++ /dev/null
@@ -1,82 +0,0 @@
-require "spec_helper"
-
-%w(cache package).each do |cmd|
- describe "bundle #{cmd} with svn" do
- it "copies repository to vendor cache and uses it" do
- svn = build_svn "foo"
- ref = svn.ref_for("HEAD")
-
- install_gemfile <<-G
- gem "foo", :svn => 'file://#{lib_path("foo-1.0")}'
- G
-
- bundle "#{cmd} --all"
- expect(bundled_app("vendor/cache/foo-1.0-#{ref}")).to exist
- expect(bundled_app("vendor/cache/foo-1.0-#{ref}/.svn")).to exist
-
- FileUtils.rm_rf lib_path("foo-1.0")
- should_be_installed "foo 1.0"
- end
-
- it "copies repository to vendor cache and uses it even when installed with bundle --path" do
- svn = build_svn "foo"
- ref = svn.ref_for("HEAD")
-
- install_gemfile <<-G
- gem "foo", :svn => 'file://#{lib_path("foo-1.0")}'
- G
-
- bundle "install --path vendor/bundle"
- bundle "#{cmd} --all"
-
- expect(bundled_app("vendor/cache/foo-1.0-#{ref}")).to exist
- expect(bundled_app("vendor/cache/foo-1.0-#{ref}/.svn")).to exist
-
- FileUtils.rm_rf lib_path("foo-1.0")
- should_be_installed "foo 1.0"
- end
-
- it "runs twice without exploding" do
- build_svn "foo"
-
- install_gemfile <<-G
- gem "foo", :svn => 'file://#{lib_path("foo-1.0")}'
- G
-
- bundle "#{cmd} --all"
- bundle "#{cmd} --all"
-
- expect(err).to eq("")
- FileUtils.rm_rf lib_path("foo-1.0")
- should_be_installed "foo 1.0"
- end
-
- it "tracks updates" do
- svn = build_svn "foo"
- old_ref = svn.ref_for("HEAD")
-
- install_gemfile <<-G
- gem "foo", :svn => 'file://#{lib_path("foo-1.0")}'
- G
-
- bundle "#{cmd} --all"
-
- update_svn "foo" do |s|
- s.write "lib/foo.rb", "puts :CACHE"
- end
-
- ref = svn.ref_for("HEAD")
- expect(ref).not_to eq(old_ref)
-
- bundle "update"
- bundle "#{cmd} --all"
-
- expect(bundled_app("vendor/cache/foo-1.0-#{ref}")).to exist
-
- FileUtils.rm_rf lib_path("foo-1.0")
- run "require 'foo'"
- expect(out).to eq("CACHE")
- end
-
- end
-end