lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt in gemsmith-14.8.0 vs lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt in gemsmith-14.9.0
- old
+ new
@@ -11,10 +11,10 @@
<%- end -%>
<%- unless config.dig(:generate, :engine) -%>
require "<%= config.dig(:gem, :path) %>"
<%- end -%>
-Dir[File.join(__dir__, "support", "shared_contexts", "**/*.rb")].sort.each(&method(:require))
+Dir[File.join(__dir__, "support", "shared_contexts", "**/*.rb")].sort.each { |path| require path }
RSpec.configure do |config|
config.color = true
config.disable_monkey_patching!
config.example_status_persistence_file_path = "./tmp/rspec-examples.txt"