summaryrefslogtreecommitdiff
path: root/spec/bundler/quality_spec.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-15 21:31:12 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-22 20:32:30 +0900
commitc7ebeb7eda9f7f6bbb48effe1efc026eeb64d09c (patch)
treeb516b3b5119331d4d8431b4d17f552e2c8e798fe /spec/bundler/quality_spec.rb
parentf4f157fc81b940c0f76a01ee266a08e6bba69b6b (diff)
Sync Bundler PR #3624
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3114
Diffstat (limited to 'spec/bundler/quality_spec.rb')
-rw-r--r--spec/bundler/quality_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/bundler/quality_spec.rb b/spec/bundler/quality_spec.rb
index 3891de4738..faeeedff5f 100644
--- a/spec/bundler/quality_spec.rb
+++ b/spec/bundler/quality_spec.rb
@@ -218,7 +218,7 @@ RSpec.describe "The library itself" do
it "ships the correct set of files" do
git_list = shipped_files
- gem_list = Gem::Specification.load(gemspec.to_s).files
+ gem_list = loaded_gemspec.files
expect(git_list.to_set).to eq(gem_list.to_set)
end
@@ -233,7 +233,7 @@ RSpec.describe "The library itself" do
]
files_to_require = lib_tracked_files.grep(/\.rb$/) - exclusions
files_to_require.reject! {|f| f.start_with?("lib/bundler/vendor") }
- files_to_require.map! {|f| File.expand_path(root.join("#{f}"), __dir__) }
+ files_to_require.map! {|f| File.expand_path(f, source_root) }
sys_exec!("ruby -w") do |input, _, _|
files_to_require.each do |f|
input.puts "require '#{f}'"