diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-01-15 13:01:14 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-01-15 13:01:14 -0600 |
commit | 67108f36873e3227c070a089699d4dbfc5761d38 (patch) | |
tree | 9662ebeaf6d474e9cb5570c7188d7a0df6f2e9c3 | |
parent | c3320f3593b7a33bc2704f82aa711bba4d14cd43 (diff) | |
download | bundler-67108f36873e3227c070a089699d4dbfc5761d38.tar.gz |
[CLI::Gem] Disable RSpec monkey patching by defaultseg-specs-rspec-config
-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 |