lib/gemsmith/builders/rspec/helper.rb in gemsmith-19.5.0 vs lib/gemsmith/builders/rspec/helper.rb in gemsmith-19.5.1

- old
+ new

@@ -31,10 +31,10 @@ def update_spec_helper builder.call(configuration.merge(template_path: "%project_name%/spec/spec_helper.rb.erb")) .touch .insert_after( %r(support/shared_contexts), - %(Pathname.require_tree __dir__, "support/shared_examples/**/*.rb"\n) + %(Pathname.require_tree SPEC_ROOT.join("support/shared_examples")\n) ) end def render_shared_example path = "%project_name%/spec/support/shared_examples/a_parser.rb.erb"