summaryrefslogtreecommitdiff
path: root/spec/support/shared/functional
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-09-08 23:57:36 -0700
committerTim Smith <tsmith84@gmail.com>2020-09-09 15:01:13 -0700
commitbd6f49e04f56729853f54f2d2d94356edc2c6e8c (patch)
treeb5dafed28e255c193c3b2996ccd7f52b88054801 /spec/support/shared/functional
parentb6c2173bf578a8f1b44aeea2bc5eef9288e48964 (diff)
downloadchef-bd6f49e04f56729853f54f2d2d94356edc2c6e8c.tar.gz
Use __dir__ instead of getting the dir of __FILE__
This is a bit easier to read Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/support/shared/functional')
-rw-r--r--spec/support/shared/functional/win32_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/shared/functional/win32_service.rb b/spec/support/shared/functional/win32_service.rb
index dfd66f74ad..890c28de2c 100644
--- a/spec/support/shared/functional/win32_service.rb
+++ b/spec/support/shared/functional/win32_service.rb
@@ -42,7 +42,7 @@ shared_context "using Win32::Service" do
service_name: "spec-service",
service_display_name: "Spec Test Service",
service_description: "Service for testing Chef::Application::WindowsServiceManager.",
- service_file_path: File.expand_path(File.join(File.dirname(__FILE__), "../../platforms/win32/spec_service.rb")),
+ service_file_path: File.expand_path(File.join(__dir__, "../../platforms/win32/spec_service.rb")),
delayed_start: true,
}
end