lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb in rubysmith-0.9.1 vs lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb in rubysmith-0.10.0
- old
+ new
@@ -1,19 +1,21 @@
require "bundler/setup"
Bundler.require :tools
-<% if realm.build_simple_cov %>
+<% if configuration.build_simple_cov %>
require "simplecov"
SimpleCov.start { enable_coverage :branch }
<% end %>
-require "<%= realm.project_name %>"
-<% if realm.build_refinements %>require "refinements"<% end %>
+require "<%= configuration.project_name %>"
+<% if configuration.build_refinements %>
+ require "refinements"
+<% end %>
GC.auto_compact = true
GC.verify_compaction_references double_heap: true, toward: :empty
-<% if realm.build_refinements %>
+<% if configuration.build_refinements %>
using Refinements::Pathnames
Pathname.require_tree __dir__, "support/shared_contexts/**/*.rb"
<% else %>