lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt in gemsmith-12.4.0 vs lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt in gemsmith-13.0.0
- old
+ new
@@ -1,16 +1,18 @@
require "bundler/setup"
<%- if config.dig(:generate, :code_climate) -%>
require "simplecov"
-SimpleCov.start
-
<%- end -%>
<%- if config.dig(:generate, :pry) -%>
require "pry"
require "pry-byebug"
<%- end -%>
<%- unless config.dig(:generate, :engine) -%>
require "<%= config.dig(:gem, :path) %>"
+<%- end -%>
+
+<%- if config.dig(:generate, :code_climate) -%>
+SimpleCov.start
<%- end -%>
Dir[File.join(File.dirname(__FILE__), "support/shared_contexts/**/*.rb")].each do |file|
require file
end