summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-02-25 22:32:17 +0200
committerPaul Buetow <paul@buetow.org>2025-02-25 22:32:17 +0200
commit24a0c5406251db11cf12bec4f0429446080839a8 (patch)
tree6f827ea21fd580234d07905136ae1d7bdbf94545 /test
parent274a42eff70cec7cb2c04d73780b4b57ce843b15 (diff)
can purge a dir
Diffstat (limited to 'test')
-rw-r--r--test/lib/dslkeywords/directory_test.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/lib/dslkeywords/directory_test.rb b/test/lib/dslkeywords/directory_test.rb
index 302db37..41229eb 100644
--- a/test/lib/dslkeywords/directory_test.rb
+++ b/test/lib/dslkeywords/directory_test.rb
@@ -33,4 +33,21 @@ class RCMDirectoryTest < Minitest::Test
end
refute File.directory?(DIR_PATH)
end
+
+ def test_purge_directory
+ configure_from_scratch do
+ file create do
+ path "#{DIR_PATH}/subdir/a_file.txt"
+ manage directory
+ 'some content'
+ end
+ directory purge do
+ path DIR_PATH
+ without backup
+ is purged
+ requires file create
+ end
+ end
+ refute File.directory?(DIR_PATH)
+ end
end