Skip to content

Commit 783df3d

Browse files
gradle: align temp-root wrapper boundary spec with helper tmp path
1 parent e7eb9fa commit 783df3d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gradle/spec/dependabot/gradle/file_updater/lockfile_updater_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,15 +514,15 @@
514514
FileUtils.chmod("+x", outside_wrapper)
515515

516516
begin
517+
stub_const("Dependabot::Utils::BUMP_TMP_DIR_PATH", outside_root)
518+
517519
allow(Dependabot::SharedHelpers).to receive(:run_shell_command) do |command, cwd:|
518520
observed_commands << command
519521
File.write(File.join(cwd, "gradle.lockfile"), "# updated root lockfile\n")
520522
FileUtils.mkdir_p(File.join(cwd, "app"))
521523
File.write(File.join(cwd, "app/gradle.lockfile"), "# updated app lockfile\n")
522524
end
523525

524-
allow(Dir).to receive(:tmpdir).and_return(outside_root)
525-
526526
updater = described_class.new(
527527
dependency_files: [subdir_settings, subdir_buildfile, subdir_root_lockfile, subdir_app_lockfile]
528528
)

0 commit comments

Comments
 (0)