File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
lib/puppetlabs_spec_helper Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,9 @@ group :development do
3030 gem 'rake'
3131 gem 'rspec' , '~> 3.1'
3232 gem 'rspec-its' , '~> 1.0'
33- gem 'rubocop' , '~> 1.50 .0' , require : false
34- gem 'rubocop-rspec' , '~> 2.19 ' , require : false
33+ gem 'rubocop' , '~> 1.64 .0' , require : false
34+ gem 'rubocop-rspec' , '~> 3.0 ' , require : false
3535 gem 'rubocop-performance' , '~> 1.16' , require : false
36- gem 'rubocop-factory_bot' , '!= 2.26.0' , require : false
37- gem 'rubocop-rspec_rails' , '!= 2.29.0' , require : false
3836
3937 gem 'fakefs'
4038 gem 'yard'
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