diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-15 19:24:56 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-16 08:43:50 +0200 |
commit | 314c64cd07ccc5541506923b1922097257b8d4c9 (patch) | |
tree | d664b79f8375a705b353728313b950b236deb107 | |
parent | d35e31d2e067f1d044550705699a979557683a99 (diff) | |
download | bundler-314c64cd07ccc5541506923b1922097257b8d4c9.tar.gz |
Rename a variable
Otherwise I get conflicts when extracting the helper.
-rw-r--r-- | spec/quality_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/quality_spec.rb b/spec/quality_spec.rb index aa59e74662..922a99480c 100644 --- a/spec/quality_spec.rb +++ b/spec/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 |