Skip to content

Commit

Permalink
Validate that Aruba scratch directory is empty at setup time
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Apr 1, 2024
1 parent e35a0fa commit fbe0507
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/support/shared_contexts/aruba.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,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"
Expand Down

0 comments on commit fbe0507

Please sign in to comment.