diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-12-24 01:36:14 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-12-27 10:45:36 +0900 |
commit | fb0737654cc20cf2be5182e05981a216ba6d3789 (patch) | |
tree | 82aafbefbc783771e94fb54fe9ff7f5429013f4b /spec/bundler | |
parent | 810c1b88ca65703859debe9c415bfd5cbc8391ad (diff) |
[rubygems/rubygems] Move setup to the spec that uses it
https://github.com/rubygems/rubygems/commit/7cf0a8fa8e
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5350
Diffstat (limited to 'spec/bundler')
-rw-r--r-- | spec/bundler/lock/lockfile_spec.rb | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/spec/bundler/lock/lockfile_spec.rb b/spec/bundler/lock/lockfile_spec.rb index 8413988b5a..b07b0b0f91 100644 --- a/spec/bundler/lock/lockfile_spec.rb +++ b/spec/bundler/lock/lockfile_spec.rb @@ -2,15 +2,7 @@ RSpec.describe "the lockfile format" do before do - build_repo2 do - # Capistrano did this (at least until version 2.5.10) - # RubyGems 2.2 doesn't allow the specifying of a dependency twice - # See https://github.com/rubygems/rubygems/commit/03dbac93a3396a80db258d9bc63500333c25bd2f - build_gem "double_deps", "1.0", :skip_validation => true do |s| - s.add_dependency "net-ssh", ">= 1.0.0" - s.add_dependency "net-ssh" - end - end + build_repo2 end it "generates a simple lockfile for a single source, gem" do @@ -759,6 +751,16 @@ RSpec.describe "the lockfile format" do end it "orders dependencies by version" do + update_repo2 do + # Capistrano did this (at least until version 2.5.10) + # RubyGems 2.2 doesn't allow the specifying of a dependency twice + # See https://github.com/rubygems/rubygems/commit/03dbac93a3396a80db258d9bc63500333c25bd2f + build_gem "double_deps", "1.0", :skip_validation => true do |s| + s.add_dependency "net-ssh", ">= 1.0.0" + s.add_dependency "net-ssh" + end + end + install_gemfile <<-G source "#{file_uri_for(gem_repo2)}/" gem 'double_deps' |