summaryrefslogtreecommitdiff
path: root/spec/unit/windows_service_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/windows_service_spec.rb')
-rw-r--r--spec/unit/windows_service_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/unit/windows_service_spec.rb b/spec/unit/windows_service_spec.rb
index adc128c9d8..a614e6630d 100644
--- a/spec/unit/windows_service_spec.rb
+++ b/spec/unit/windows_service_spec.rb
@@ -15,13 +15,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-require 'spec_helper'
+require "spec_helper"
if Chef::Platform.windows?
- require 'chef/application/windows_service'
+ require "chef/application/windows_service"
end
describe "Chef::Application::WindowsService", :windows_only do
- let(:shell_out_result) { double('shellout', stdout: nil, stderr: nil) }
+ let(:shell_out_result) { double("shellout", stdout: nil, stderr: nil) }
let(:config_options) do
{
log_location: STDOUT,
@@ -57,8 +57,8 @@ describe "Chef::Application::WindowsService", :windows_only do
subject.service_main
end
- context 'has a log location configured' do
- let(:tempfile) { Tempfile.new 'log_file' }
+ context "has a log location configured" do
+ let(:tempfile) { Tempfile.new "log_file" }
let(:config_options) do
{
log_location: tempfile.path,
@@ -79,7 +79,7 @@ describe "Chef::Application::WindowsService", :windows_only do
subject.service_main
end
- context 'configured to Event Logger' do
+ context "configured to Event Logger" do
let(:config_options) do
{
log_location: Chef::Log::WinEvt.new,
@@ -98,7 +98,7 @@ describe "Chef::Application::WindowsService", :windows_only do
end
end
- context 'configueres a watchdog timeout' do
+ context "configueres a watchdog timeout" do
let(:timeout) { 10 }
before do