summaryrefslogtreecommitdiff
path: root/lib/bundler/templates/newgem/spec/spec_helper.rb.tt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/templates/newgem/spec/spec_helper.rb.tt')
-rw-r--r--lib/bundler/templates/newgem/spec/spec_helper.rb.tt11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/bundler/templates/newgem/spec/spec_helper.rb.tt b/lib/bundler/templates/newgem/spec/spec_helper.rb.tt
index 4c69d354b3..a5e7f92ffe 100644
--- a/lib/bundler/templates/newgem/spec/spec_helper.rb.tt
+++ b/lib/bundler/templates/newgem/spec/spec_helper.rb.tt
@@ -1,2 +1,11 @@
-$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
+require "bundler/setup"
require "<%= config[:namespaced_path] %>"
+
+RSpec.configure do |config|
+ # Enable flags like --only-failures and --next-failure
+ config.example_status_persistence_file_path = ".rspec_status"
+
+ config.expect_with :rspec do |c|
+ c.syntax = :expect
+ end
+end