diff options
author | Cameron Thomas <cameron@puppetlabs.com> | 2011-07-27 15:30:19 -0700 |
---|---|---|
committer | Cameron Thomas <cameron@puppetlabs.com> | 2011-08-10 13:07:29 -0700 |
commit | d08ae7fd2180c95d1fcafa149128d25cc4680c6c (patch) | |
tree | dc6094a5b23aa7f244bc0991501f50b482c66a1d /lib | |
parent | 6d692af86b70977b73be051992e18e34a1d64d65 (diff) | |
download | puppet-d08ae7fd2180c95d1fcafa149128d25cc4680c6c.tar.gz puppet-d08ae7fd2180c95d1fcafa149128d25cc4680c6c.tar.xz puppet-d08ae7fd2180c95d1fcafa149128d25cc4680c6c.zip |
(#8272) Add missing tests for Windows service provider methods.
Added missing spec tests for Windows service provider methods:
:stop, :enable, :disable, and :manual_start
Refactored to match Nick's previous work.
Reviewed By: Nick Lewis [nick@puppetlabs.com]
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/provider/service/windows.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/provider/service/windows.rb b/lib/puppet/provider/service/windows.rb index f1485f268..289be697a 100644 --- a/lib/puppet/provider/service/windows.rb +++ b/lib/puppet/provider/service/windows.rb @@ -80,7 +80,7 @@ Puppet::Type.type(:service).provide :windows do def stop Win32::Service.stop( @resource[:name] ) rescue Win32::Service::Error => detail - raise Puppet::Error.new("Cannot start #{@resource[:name]}, error was: #{detail}" ) + raise Puppet::Error.new("Cannot stop #{@resource[:name]}, error was: #{detail}" ) end def restart |