summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCameron Thomas <cameron@puppetlabs.com>2011-07-27 15:30:19 -0700
committerJacob Helwig <jacob@puppetlabs.com>2011-08-19 13:52:59 -0700
commit4237cb1b12851d42504c9829fc61fe31cb84866c (patch)
tree16b1e23ec5e55a0ff029a2088fd369d6130e8fe3 /lib
parenta32c8be4b32cfbc0588648e56e9194f3a75bbaa6 (diff)
downloadpuppet-4237cb1b12851d42504c9829fc61fe31cb84866c.tar.gz
puppet-4237cb1b12851d42504c9829fc61fe31cb84866c.tar.xz
puppet-4237cb1b12851d42504c9829fc61fe31cb84866c.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] (cherry picked from commit d08ae7fd2180c95d1fcafa149128d25cc4680c6c)
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/provider/service/windows.rb2
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