summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-11-16 11:35:52 -0800
committerTim Smith <tsmith84@gmail.com>2020-11-16 11:35:52 -0800
commitddde0f96dc3c7ee4747f232bbdd04e26f984666e (patch)
tree8e32c60cfafd06a4e89bb65fda62a43e4c8325e5
parente74714f942ddbab0f205ba707d738c37572a318c (diff)
downloadmixlib-shellout-ddde0f96dc3c7ee4747f232bbdd04e26f984666e.tar.gz
Fix loading of spec support filesdocs
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--spec/spec_helper.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index ebc5a84..b8a10c1 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -5,8 +5,7 @@ require "tempfile"
require "timeout"
# Load everything from spec/support
-# Do not change the gsub.
-Dir["spec/support/**/*.rb"].map { |f| f.gsub(/.rb$/, "") }.each { |f| require f }
+Dir["spec/support/**/*.rb"].each { |f| require File.expand_path(f) }
RSpec.configure do |config|
config.mock_with :rspec