lib/specinfra/command/openbsd/base/file.rb in specinfra-2.0.0.beta11 vs lib/specinfra/command/openbsd/base/file.rb in specinfra-2.0.0.beta12

- old
+ new

@@ -11,10 +11,10 @@ def check_is_linked_to(link, target) "stat -f %Y #{escape(link)} | grep -- #{escape(target)}" end - def check_mode(file, mode) + def check_has_mode(file, mode) regexp = "^#{mode}$" "stat -f%Lp #{escape(file)} | grep #{escape(regexp)}" end def check_is_owned_by(file, owner)