From 9228bfc46db6f68fe4f38e6a0c5d4b2d69312fe1 Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Mon, 1 Apr 2024 22:51:54 +0200 Subject: [PATCH] Validate that Aruba scratch directory is empty at setup time --- spec/support/shared_contexts/aruba.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/support/shared_contexts/aruba.rb b/spec/support/shared_contexts/aruba.rb index 649f059d..328ac9b8 100644 --- a/spec/support/shared_contexts/aruba.rb +++ b/spec/support/shared_contexts/aruba.rb @@ -34,6 +34,7 @@ def set_tag(tag_name, value) @file_size = 256 @file_path = @aruba.expand_path(@file_name) @aruba.setup_aruba + raise "File #{@file_path} exists" if File.exist? @file_path if @aruba.aruba.current_directory[0] == '/' raise 'We must work with relative paths, everything else is dangerous'