lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb in rubysmith-0.5.0 vs lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb in rubysmith-0.6.0
- old
+ new
@@ -1,18 +1,23 @@
require "bundler/setup"
+Bundler.require :test, :tools
<% if realm.build_simple_cov %>
require "simplecov"
SimpleCov.start { enable_coverage :branch }
<% end %>
-<% if realm.build_pry %>
- require "pry"
- require "pry-byebug"
-<% end %>
require "<%= realm.project_name %>"
+<% if realm.build_refinements %>
+ require "refinements"
-Dir[File.join(__dir__, "support", "shared_contexts", "**/*.rb")].sort.each { |path| require path }
+ using Refinements::Pathnames
+
+ Pathname.require_tree __dir__, "support/shared_contexts/**/*.rb"
+<% else %>
+
+ Dir[File.join(__dir__, "support", "shared_contexts", "**/*.rb")].sort.each { |path| require path }
+<% end %>
RSpec.configure do |config|
config.color = true
config.disable_monkey_patching!
config.example_status_persistence_file_path = "./tmp/rspec-examples.txt"