summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/plugins/root_group_spec.rb42
1 files changed, 0 insertions, 42 deletions
diff --git a/spec/unit/plugins/root_group_spec.rb b/spec/unit/plugins/root_group_spec.rb
index 0fee6fe4..501264f2 100644
--- a/spec/unit/plugins/root_group_spec.rb
+++ b/spec/unit/plugins/root_group_spec.rb
@@ -81,54 +81,12 @@ describe Ohai::System, 'root_group' do
end
describe 'windows', :windows_only do
- before(:each) do
- ::RbConfig::CONFIG['host_os'] = 'windows'
-
- # fake out WMI::Win32_Group#find
- unless defined?(WMI)
- module WMI
- unless defined?(WMI::Win32_Group)
- class Win32_Group; end
- end
- end
- end
- @group = Object.new
- WMI::Win32_Group.
- stub(:find).
- with(:first, :conditions => {:SID => 'S-1-5-32-544'}).
- and_return(@group)
- end
# TODO: Not implemented on windows.
# See also:
#
# http://tickets.opscode.com/browse/OHAI-490
# http://tickets.opscode.com/browse/OHAI-491
- describe 'with administrator group' do
- before(:each) do
- @group.
- stub(:[]).
- with('Name').
- and_return('Administrator')
- end
- it 'should have a root_group of system' do
- @plugin.run
- @plugin[:root_group].should == 'Administrator'
- end
- end
-
- describe 'with renamed administrator group' do
- before(:each) do
- @group.
- stub(:[]).
- with('Name').
- and_return('BOFH')
- end
- it 'should have a root_group of system' do
- @plugin.run
- @plugin[:root_group].should == 'BOFH'
- end
- end
end
end