File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
lib/puppetlabs_spec_helper Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ def function_method(name, parts = {})
3939 # exposed hack.
4040 return nil unless Puppet ::Parser ::Functions . function ( name )
4141
42- scope . method ( "function_#{ name } " . to_sym )
42+ scope . method ( : "function_#{ name } ")
4343 end
4444 module_function :function_method
4545 end
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ def download_items(items)
317317 end
318318 end
319319 # wait for all the threads to finish
320- items . each { |_remote , opts | opts [ :thread ] . join }
320+ items . each_value { |opts | opts [ :thread ] . join }
321321 end
322322
323323 # @param target [String] - the target directory
@@ -427,12 +427,12 @@ def download_module(remote, opts)
427427
428428desc 'Clean up the fixtures directory'
429429task :spec_clean do
430- repositories . each do |_remote , opts |
430+ repositories . each_value do |opts |
431431 target = opts [ 'target' ]
432432 FileUtils . rm_rf ( target )
433433 end
434434
435- forge_modules . each do |_remote , opts |
435+ forge_modules . each_value do |opts |
436436 target = opts [ 'target' ]
437437 FileUtils . rm_rf ( target )
438438 end
@@ -446,7 +446,7 @@ def download_module(remote, opts)
446446
447447desc 'Clean up any fixture symlinks'
448448task :spec_clean_symlinks do
449- fixtures ( 'symlinks' ) . each do |_source , opts |
449+ fixtures ( 'symlinks' ) . each_value do |opts |
450450 target = opts [ 'target' ]
451451 FileUtils . rm_f ( target )
452452 end
You can’t perform that action at this time.
0 commit comments