From 67108f36873e3227c070a089699d4dbfc5761d38 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Sun, 15 Jan 2017 13:01:14 -0600 Subject: [CLI::Gem] Disable RSpec monkey patching by default --- lib/bundler/templates/newgem/spec/spec_helper.rb.tt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/bundler/templates/newgem/spec/spec_helper.rb.tt b/lib/bundler/templates/newgem/spec/spec_helper.rb.tt index a5e7f92f..805cf57e 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 -- cgit v1.2.3