diff options
author | Dan Bjorge <dbjorge@gmail.com> | 2015-04-23 01:11:26 -0700 |
---|---|---|
committer | Dan Bjorge <dbjorge@gmail.com> | 2015-04-23 01:11:26 -0700 |
commit | 8c18efe89da10de749511a7e35c182feac49992d (patch) | |
tree | 7fdf89a9c83745e010166178fdc277bd309a89ab | |
parent | 29a75bd241e28d58b19b790e9679e94e717287ca (diff) | |
download | chef-8c18efe89da10de749511a7e35c182feac49992d.tar.gz |
Stop sid_spec.rb from referencing Win32 classes on non-Windows
-rw-r--r-- | spec/functional/win32/sid_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/functional/win32/sid_spec.rb b/spec/functional/win32/sid_spec.rb index dd453c29bc..a12cfb6e79 100644 --- a/spec/functional/win32/sid_spec.rb +++ b/spec/functional/win32/sid_spec.rb @@ -22,7 +22,9 @@ if Chef::Platform.windows? end describe 'Chef::ReservedNames::Win32::SID', :windows_only do - SID ||= Chef::ReservedNames::Win32::Security::SID + if Chef::Platform.windows? + SID ||= Chef::ReservedNames::Win32::Security::SID + end it 'should resolve default_security_object_group as the current user' do expect(SID.default_security_object_group).to eq(SID.current_user) |