diff --git a/bundler/spec/dependabot/bundler/update_checker_spec.rb b/bundler/spec/dependabot/bundler/update_checker_spec.rb index dfb2f54f24..27b42e900f 100644 --- a/bundler/spec/dependabot/bundler/update_checker_spec.rb +++ b/bundler/spec/dependabot/bundler/update_checker_spec.rb @@ -163,7 +163,7 @@ function: "dependency_source_type", options: anything, args: anything - }).and_call_original + }).and_return("private") allow(Dependabot::Bundler::NativeHelpers) .to receive(:run_bundler_subprocess) diff --git a/python/spec/dependabot/python/update_checker/pip_compile_version_resolver_spec.rb b/python/spec/dependabot/python/update_checker/pip_compile_version_resolver_spec.rb index 5c1ce44f50..b95b08004e 100644 --- a/python/spec/dependabot/python/update_checker/pip_compile_version_resolver_spec.rb +++ b/python/spec/dependabot/python/update_checker/pip_compile_version_resolver_spec.rb @@ -394,7 +394,9 @@ context "because it ran out of disk space" do before do allow(Dependabot::SharedHelpers) - .to receive(:run_shell_command).and_call_original + .to receive(:run_shell_command) + allow(Dependabot::SharedHelpers) + .to receive(:run_shell_command).with("pyenv versions").and_return("3.11.5") allow(Dependabot::SharedHelpers) .to receive(:run_shell_command).with(a_string_matching(/pyenv exec pip-compile/), *any_args) .and_raise( @@ -414,7 +416,9 @@ context "because it ran out of memory" do before do allow(Dependabot::SharedHelpers) - .to receive(:run_shell_command).and_call_original + .to receive(:run_shell_command) + allow(Dependabot::SharedHelpers) + .to receive(:run_shell_command).with("pyenv versions").and_return("3.11.5") allow(Dependabot::SharedHelpers) .to receive(:run_shell_command).with(a_string_matching(/pyenv exec pip-compile/), *any_args) .and_raise(