lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb in rubysmith-0.4.0 vs lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb in rubysmith-0.5.0
- old
+ new
@@ -7,11 +7,12 @@
<% if realm.build_pry %>
require "pry"
require "pry-byebug"
<% end %>
+require "<%= realm.project_name %>"
-Dir[File.join(__dir__, "support", "shared_contexts", "**/*.rb")].sort.each(&method(:require))
+Dir[File.join(__dir__, "support", "shared_contexts", "**/*.rb")].sort.each { |path| require path }
RSpec.configure do |config|
config.color = true
config.disable_monkey_patching!
config.example_status_persistence_file_path = "./tmp/rspec-examples.txt"