diff options
Diffstat (limited to 'spec/scripts/ssl-serve.rb')
-rw-r--r-- | spec/scripts/ssl-serve.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/scripts/ssl-serve.rb b/spec/scripts/ssl-serve.rb index e9f645416c..40b77d4d1a 100644 --- a/spec/scripts/ssl-serve.rb +++ b/spec/scripts/ssl-serve.rb @@ -12,7 +12,7 @@ require "webrick/https" $ssl = true -CHEF_SPEC_DATA = File.expand_path("../../data", __FILE__) +CHEF_SPEC_DATA = File.expand_path('../data', __dir__) cert_text = File.read(File.expand_path("ssl/chef-rspec.cert", CHEF_SPEC_DATA)) cert = OpenSSL::X509::Certificate.new(cert_text) key_text = File.read(File.expand_path("ssl/chef-rspec.key", CHEF_SPEC_DATA)) |