diff options
Diffstat (limited to 'spec/support/platform_helpers.rb')
-rw-r--r-- | spec/support/platform_helpers.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb index 69bdbf7..c730b4d 100644 --- a/spec/support/platform_helpers.rb +++ b/spec/support/platform_helpers.rb @@ -24,3 +24,8 @@ else LINE_ENDING = "\n" ECHO_LC_ALL = "echo $LC_ALL" end + +def root? + return false if windows? + Process.euid == 0 +end |