aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2017-01-15 22:22:34 +0000
committerThe Bundler Bot <bot@bundler.io>2017-01-15 22:22:34 +0000
commit6fff128e07cc847483fad573300160d226cd2a35 (patch)
treef9d4e201e2e94484fd5376c8840f1936e86dad37 /lib
parentb72d6af45a6bc55327c8cdd127b79e7b1fa8ab79 (diff)
parent67108f36873e3227c070a089699d4dbfc5761d38 (diff)
downloadbundler-6fff128e07cc847483fad573300160d226cd2a35.tar.gz
Auto merge of #5331 - bundler:seg-specs-rspec-config, r=indirect
Re-work RSpec configuration to be more CI-friendly - Fail fast when there are a bunch of failures. Especially since holding all of the failure output in memory makes the tests hella slow - Disable RSpec monkey patching - Disable the same by default when generating new gems
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/templates/newgem/spec/spec_helper.rb.tt3
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 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