summaryrefslogtreecommitdiffstats
path: root/features/support/helpers/vm_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/support/helpers/vm_helper.rb')
-rw-r--r--features/support/helpers/vm_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/features/support/helpers/vm_helper.rb b/features/support/helpers/vm_helper.rb
index 452ae9d..13ad4e2 100644
--- a/features/support/helpers/vm_helper.rb
+++ b/features/support/helpers/vm_helper.rb
@@ -522,6 +522,10 @@ class VM
execute("test -e '#{file}'").success?
end
+ def file_empty?(file)
+ return file_content(file).empty?
+ end
+
def directory_exist?(directory)
execute("test -d '#{directory}'").success?
end