summaryrefslogtreecommitdiff
path: root/spec/bundler
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-15 19:24:56 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-17 17:08:50 +0900
commit19dabfbe574f9a8298054eb417d299ec5fc18412 (patch)
tree0f1779895ce67031f594c13621393b689aadef56 /spec/bundler
parentc896f71577e17e7b89ad39463b82d8936f000480 (diff)
[bundler/bundler] Rename a variable
Otherwise I get conflicts when extracting the helper. https://github.com/bundler/bundler/commit/314c64cd07
Diffstat (limited to 'spec/bundler')
-rw-r--r--spec/bundler/quality_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/bundler/quality_spec.rb b/spec/bundler/quality_spec.rb
index aa59e74662..922a99480c 100644
--- a/spec/bundler/quality_spec.rb
+++ b/spec/bundler/quality_spec.rb
@@ -268,11 +268,11 @@ RSpec.describe "The library itself" do
lib/bundler/templates/gems.rb
]
lib_tracked_files = ruby_core? ? `git ls-files -z -- lib/bundler lib/bundler.rb` : `git ls-files -z -- lib`
- lib_tracked_files = lib_tracked_files.split("\x0").grep(/\.rb$/) - exclusions
- lib_tracked_files.reject! {|f| f.start_with?("lib/bundler/vendor") }
- lib_tracked_files.map! {|f| f.chomp(".rb") }
+ files_to_require = lib_tracked_files.split("\x0").grep(/\.rb$/) - exclusions
+ files_to_require.reject! {|f| f.start_with?("lib/bundler/vendor") }
+ files_to_require.map! {|f| f.chomp(".rb") }
sys_exec!("ruby -w -Ilib") do |input, _, _|
- lib_tracked_files.each do |f|
+ files_to_require.each do |f|
input.puts "require '#{f.sub(%r{\Alib/}, "")}'"
end
end