lib/gemsmith/generators/rspec.rb in gemsmith-8.2.0 vs lib/gemsmith/generators/rspec.rb in gemsmith-9.0.0

- old
+ new

@@ -22,10 +22,14 @@ cli.uncomment_lines "#{gem_name}/Rakefile", /RSpec.+/ end def install_templates cli.template "#{rspec_root}/spec_helper.rb.tt", configuration - cli.template("#{rspec_root}/rails_helper.rb.tt", configuration) if configuration.dig(:generate, :rails) + + if configuration.dig(:generate, :rails) + cli.template("#{rspec_root}/rails_helper.rb.tt", configuration) + end + cli.template "#{rspec_root}/support/shared_contexts/temp_dir.rb.tt", configuration end end end end