summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-05 15:21:38 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-05 15:24:49 +0100
commit18cde3b606ecc88a47a2a856de79db8482b5fb25 (patch)
tree241e85611f3e2b28be19712b8832423ad23c390b /spec/spec_helper.rb
parent1daae58d9a139425d6a0a4d940b04ad3af08bb9f (diff)
downloadbundler-18cde3b606ecc88a47a2a856de79db8482b5fb25.tar.gz
Disallow folder changing helpers without a block
Since their naming leads to code that reads a bit weird without a block.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 0a49b46aaa..a4e99a6dd8 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -105,7 +105,9 @@ RSpec.configure do |config|
ENV.replace(original_env)
reset!
system_gems []
- in_app_root
+
+ Dir.chdir(bundled_app)
+
@command_executions = []
Bundler.ui.silence { example.run }