lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb in rubysmith-4.6.0 vs lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb in rubysmith-4.6.1
- old
+ new
@@ -22,10 +22,10 @@
<% if configuration.build_refinements %>
SPEC_ROOT = Pathname(__dir__).realpath.freeze
using Refinements::Pathnames
-Pathname.require_tree SPEC_ROOT, "support/shared_contexts/**/*.rb"
+Pathname.require_tree SPEC_ROOT.join("support/shared_contexts")
<% else %>
SPEC_ROOT = Pathname(__dir__).realpath.freeze
Dir[File.join(SPEC_ROOT, "support", "shared_contexts", "**/*.rb")].each { |path| require path }