diff options
Diffstat (limited to 'spec/mspec/lib')
-rw-r--r-- | spec/mspec/lib/mspec/helpers/tmp.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/mspec/lib/mspec/helpers/tmp.rb b/spec/mspec/lib/mspec/helpers/tmp.rb index 437261a6d0..e903dd9f50 100644 --- a/spec/mspec/lib/mspec/helpers/tmp.rb +++ b/spec/mspec/lib/mspec/helpers/tmp.rb @@ -42,9 +42,11 @@ def tmp(name, uniquify = true) raise ArgumentError, "SPEC_TEMP_DIR (#{SPEC_TEMP_DIR}) is world writable but not sticky" end else - umask = File.umask - if (umask & 0002) == 0 # o+w - raise ArgumentError, "File.umask #=> #{umask.to_s(8)} (world-writable)" + platform_is_not :windows do + umask = File.umask + if (umask & 0002) == 0 # o+w + raise ArgumentError, "File.umask #=> #{umask.to_s(8)} (world-writable)" + end end mkdir_p SPEC_TEMP_DIR end |