diff options
author | sersut <serdar@opscode.com> | 2013-01-22 15:38:44 -0800 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2013-01-22 15:38:44 -0800 |
commit | 872eaa93133f42ff20d84b3eecef53d360c9ff2e (patch) | |
tree | 18345812b17b471a69d1350118849d0b71b51a95 /spec/functional | |
parent | 7356f48a19992168f0904526a9764525ae8bcd56 (diff) | |
download | chef-872eaa93133f42ff20d84b3eecef53d360c9ff2e.tar.gz |
Add a pending negative testcase.
Diffstat (limited to 'spec/functional')
-rw-r--r-- | spec/functional/win32/security_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/functional/win32/security_spec.rb b/spec/functional/win32/security_spec.rb index 03fb460e12..4ad9b07b74 100644 --- a/spec/functional/win32/security_spec.rb +++ b/spec/functional/win32/security_spec.rb @@ -25,4 +25,13 @@ describe 'Chef::Win32::Security', :windows_only do it "has_admin_privileges? returns true when running as admin" do Chef::ReservedNames::Win32::Security.has_admin_privileges?.should == true end + + # We've done some investigation adding a negative test and it turned + # out to be a lot of work since mixlib-shellout doesn't have user + # support for windows. + # + # TODO - Add negative tests once mixlib-shellout has user support + it "has_admin_privileges? returns false when running as non-admin" do + pending "requires user support in mixlib-shellout" + end end |