aboutsummaryrefslogtreecommitdiffstats
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.tt14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/spec/spec_helper.rb.tt b/lib/bundler/templates/newgem/spec/spec_helper.rb.tt
new file mode 100644
index 0000000000..805cf57e01
--- /dev/null
+++ b/lib/bundler/templates/newgem/spec/spec_helper.rb.tt
@@ -0,0 +1,14 @@
+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"
+
+ # Disable RSpec exposing methods globally on `Module` and `main`
+ config.disable_monkey_patching!
+
+ config.expect_with :rspec do |c|
+ c.syntax = :expect
+ end
+end