diff options
-rw-r--r-- | lib/bundler/templates/newgem/spec/spec_helper.rb.tt | 3 |
1 files changed, 3 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 index a5e7f92ffe..805cf57e01 100644 --- a/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +++ b/lib/bundler/templates/newgem/spec/spec_helper.rb.tt @@ -5,6 +5,9 @@ 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 |