summaryrefslogtreecommitdiff
path: root/spec/bundler/quality_spec.rb
diff options
context:
space:
mode:
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}'"