summaryrefslogtreecommitdiff
path: root/spec/unit/provider/service/init_service_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/provider/service/init_service_spec.rb')
-rw-r--r--spec/unit/provider/service/init_service_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/unit/provider/service/init_service_spec.rb b/spec/unit/provider/service/init_service_spec.rb
index 6daa62b04f..650fca8320 100644
--- a/spec/unit/provider/service/init_service_spec.rb
+++ b/spec/unit/provider/service/init_service_spec.rb
@@ -222,4 +222,14 @@ RUNNING_PS
@provider.reload_service()
end
end
+
+ describe "when a custom command has been specified" do
+ before do
+ @new_resource.start_command("/etc/init.d/chef startyousillysally")
+ end
+
+ it "should still pass all why run assertions" do
+ lambda { @provider.run_action(:start) }.should_not raise_error(Chef::Exceptions::Service)
+ end
+ end
end