diff options
author | Andre Arko <andre@arko.net> | 2015-01-24 12:49:56 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-01-25 23:30:30 -0800 |
commit | a1f1cc6bef69d96b6998f128a84a633595cffa15 (patch) | |
tree | bcca97c523023cb2a1599c709280414324bde156 /spec/update | |
parent | 4dc8cf6c778d7aed0c020f1564cf93827e3b0403 (diff) | |
download | bundler-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/update')
-rw-r--r-- | spec/update/svn_spec.rb | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/spec/update/svn_spec.rb b/spec/update/svn_spec.rb deleted file mode 100644 index 056d798088..0000000000 --- a/spec/update/svn_spec.rb +++ /dev/null @@ -1,100 +0,0 @@ -require "spec_helper" - -describe "bundle update" do - describe "svn sources" do - it "updates correctly when you have like craziness" do - build_lib "activesupport", "3.0", :path => lib_path("rails/activesupport") - build_svn "rails", "3.0", :path => lib_path("rails") do |s| - s.add_dependency "activesupport", "= 3.0" - end - - install_gemfile <<-G - gem "rails", :svn => "file://#{lib_path('rails')}" - G - - bundle "update rails" - expect(out).to include("Using activesupport 3.0 from file://#{lib_path('rails')} (at HEAD)") - should_be_installed "rails 3.0", "activesupport 3.0" - end - - it "floats on master when updating all gems that are pinned to the source even if you have child dependencies" do - build_svn "foo", :path => lib_path('foo') - build_gem "bar", :to_system => true do |s| - s.add_dependency "foo" - end - - install_gemfile <<-G - gem "foo", :svn => "file://#{lib_path('foo')}" - gem "bar" - G - - update_svn "foo", :path => lib_path('foo') do |s| - s.write "lib/foo.rb", "FOO = '1.1'" - end - - bundle "update foo" - - should_be_installed "foo 1.1" - end - - it "notices when you change the repo url in the Gemfile" do - build_svn "foo", :path => lib_path("foo_one") - build_svn "foo", :path => lib_path("foo_two") - - install_gemfile <<-G - gem "foo", "1.0", :svn => "file://#{lib_path('foo_one')}" - G - - FileUtils.rm_rf lib_path("foo_one") - - install_gemfile <<-G - gem "foo", "1.0", :svn => "file://#{lib_path('foo_two')}" - G - - expect(err).to be_empty - expect(out).to include("Fetching file://#{lib_path}/foo_two") - expect(out).to include("Bundle complete!") - end - - it "should not explode on invalid revision on update of gem by name" do - build_svn "rack", "0.8" - - build_svn "rack", "0.8", :path => lib_path('local-rack') do |s| - s.write "lib/rack.rb", "puts :LOCAL" - end - - install_gemfile <<-G - source "file://#{gem_repo1}" - gem "rack", :svn => "file://#{lib_path('rack-0.8')}", :branch => "master" - G - - bundle %|config local.rack #{File.join(lib_path('local-rack'), '.checkout')}| - bundle "update rack" - expect(out).to include("Bundle updated!") - end - - it "shows the previous version of the gem" do - build_svn "rails", "3.0", :path => lib_path("rails") - - install_gemfile <<-G - gem "rails", :svn => "file://#{lib_path('rails')}" - G - - lockfile <<-G - SVN - remote: file://#{lib_path("rails")} - specs: - rails (2.3.2) - - PLATFORMS - #{generic(Gem::Platform.local)} - - DEPENDENCIES - rails! - G - - bundle "update" - expect(out).to include("Using rails 3.0 (was 2.3.2) from file://#{lib_path('rails')} (at HEAD)") - end - end -end |