diff options
author | Tim Smith <tsmith@chef.io> | 2020-11-16 11:51:22 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-16 11:51:22 -0800 |
commit | 6afdea818aaf5d051871834fcc7941bb4fd674a9 (patch) | |
tree | 8e32c60cfafd06a4e89bb65fda62a43e4c8325e5 | |
parent | a7a5ca586054c5657faa349a9c3ce6c247a61b7e (diff) | |
parent | ddde0f96dc3c7ee4747f232bbdd04e26f984666e (diff) | |
download | mixlib-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-- | Gemfile | 8 | ||||
-rw-r--r-- | Rakefile | 7 | ||||
-rw-r--r-- | spec/spec_helper.rb | 3 |
3 files changed, 2 insertions, 16 deletions
@@ -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 @@ -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 |