diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-04 10:54:20 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-04 12:25:05 +0200 |
commit | fb4f0a81768e6dfb5c2112f9d6f1d8e0b3096c8c (patch) | |
tree | 760dd8bc155d743cbdad1a2405eea7ba9bb740ce | |
parent | 5fd31c066541d80f31d8f59e6692381c1538aa79 (diff) | |
download | bundler-fb4f0a81768e6dfb5c2112f9d6f1d8e0b3096c8c.tar.gz |
Fix incorrect specification name in spec
-rw-r--r-- | spec/runtime/setup_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb index 448ee7f03a..aa24c3a736 100644 --- a/spec/runtime/setup_spec.rb +++ b/spec/runtime/setup_spec.rb @@ -807,6 +807,7 @@ end let(:gem_home) { Dir.mktmpdir } let(:symlinked_gem_home) { Tempfile.new("gem_home").path } let(:bundler_dir) { ruby_core? ? File.expand_path("../../../..", __FILE__) : File.expand_path("../../..", __FILE__) } + let(:full_name) { "bundler-#{Bundler::VERSION}" } before do FileUtils.ln_sf(gem_home, symlinked_gem_home) @@ -815,14 +816,14 @@ end Dir.mkdir(gems_dir) Dir.mkdir(specifications_dir) - FileUtils.ln_s(bundler_dir, File.join(gems_dir, "bundler-#{Bundler::VERSION}")) + FileUtils.ln_s(bundler_dir, File.join(gems_dir, full_name)) gemspec_file = ruby_core? ? "#{bundler_dir}/lib/bundler/bundler.gemspec" : "#{bundler_dir}/bundler.gemspec" gemspec = File.read(gemspec_file). sub("Bundler::VERSION", %("#{Bundler::VERSION}")) gemspec = gemspec.lines.reject {|line| line =~ %r{lib/bundler/version} }.join - File.open(File.join(specifications_dir, "bundler.gemspec"), "wb") do |f| + File.open(File.join(specifications_dir, "#{full_name}.gemspec"), "wb") do |f| f.write(gemspec) end end |