summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-11-16 11:51:22 -0800
committerGitHub <noreply@github.com>2020-11-16 11:51:22 -0800
commit6afdea818aaf5d051871834fcc7941bb4fd674a9 (patch)
tree8e32c60cfafd06a4e89bb65fda62a43e4c8325e5
parenta7a5ca586054c5657faa349a9c3ce6c247a61b7e (diff)
parentddde0f96dc3c7ee4747f232bbdd04e26f984666e (diff)
downloadmixlib-shellout-6afdea818aaf5d051871834fcc7941bb4fd674a9.tar.gz
Merge pull request #226 from chef/docs
Cleanup deps and fix the failing spec helper loading of support files
-rw-r--r--Gemfile8
-rw-r--r--Rakefile7
-rw-r--r--spec/spec_helper.rb3
3 files changed, 2 insertions, 16 deletions
diff --git a/Gemfile b/Gemfile
index 40d317d..a5f5274 100644
--- a/Gemfile
+++ b/Gemfile
@@ -4,14 +4,8 @@ gemspec name: "mixlib-shellout"
gem "parallel", "< 1.20" # pin until we drop ruby < 2.4
-group :docs do
- gem "github-markup"
- gem "redcarpet"
- gem "yard"
-end
-
group :test do
- gem "chefstyle", "1.2.0"
+ gem "chefstyle", "1.5.1"
gem "rake"
gem "rspec", "~> 3.0"
end
diff --git a/Rakefile b/Rakefile
index 4b83938..ebc8826 100644
--- a/Rakefile
+++ b/Rakefile
@@ -25,13 +25,6 @@ rescue LoadError
puts "chefstyle gem is not installed. bundle install first to make sure all dependencies are installed."
end
-begin
- require "yard"
- YARD::Rake::YardocTask.new(:docs)
-rescue LoadError
- puts "yard is not available. bundle install first to make sure all dependencies are installed."
-end
-
task :console do
require "irb"
require "irb/completion"
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