Skip to content

Commit 0591deb

Browse files
committed
Set the bundle path in config
Using the --path CLI option was deprecated but now aborts the command, used to just print a warning.
1 parent d86bb5c commit 0591deb

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

spec/features/create_extension_spec.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,12 @@ def bundle_install
184184
# variables doesn't help because commands are run with a clean env.
185185
bundle_path = "#{gem_root}/vendor/bundle"
186186

187-
command = 'bundle install'
188-
command = "env BUNDLE_PATH=#{bundle_path.shellescape} #{command}" if File.exist?(bundle_path)
187+
if File.exist?(bundle_path)
188+
sh "bundle config set --local path #{bundle_path.shellescape}"
189+
end
189190

190191
output = nil
191-
cd(install_path) { output = sh command }
192+
cd(install_path) { output = sh 'bundle install' }
192193
output
193194
end
194195
end

0 commit comments

Comments
 (0)