From 31be2803db016b620e08f2651fb5b4bc09675043 Mon Sep 17 00:00:00 2001 From: Dan Webb Date: Mon, 27 Nov 2023 09:48:58 +0000 Subject: [PATCH] SQUASHME Signed-off-by: Dan Webb --- Gemfile | 15 +++++++-------- Rakefile | 2 +- test/spec/spec_helper.rb | 21 --------------------- 3 files changed, 8 insertions(+), 30 deletions(-) diff --git a/Gemfile b/Gemfile index 7e65fcc..236756c 100644 --- a/Gemfile +++ b/Gemfile @@ -3,21 +3,20 @@ source 'https://rubygems.org' gemspec group :development do - gem 'bundler' - gem 'rake' - # Style checker gems. gem 'countloc' - # Unit testing gems. - gem 'rspec', '~> 3.2' - gem 'rspec-its', '~> 1.2' - gem 'fuubar', '~> 2.0' - # Integration testing gems. gem 'kitchen-inspec', '~> 2.0' gem 'train', '>= 2.1', '< 4.0' # validate 4.x when it's released end +group :test do + gem 'bundler' + gem 'rake' + gem 'rspec', '~> 3.2' + gem 'rspec-its', '~> 1.2' +end + group :chefstyle do gem 'chefstyle', '~> 2.2', '>= 2.2.3' end diff --git a/Rakefile b/Rakefile index 85cb01d..1deea1a 100644 --- a/Rakefile +++ b/Rakefile @@ -16,7 +16,7 @@ require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:test, :tag) do |t, args| t.rspec_opts = [].tap do |a| a << "--color" - a << "--format #{ENV["CI"] ? "documentation" : "Fuubar"}" + a << "--format #{ENV["CI"] ? "documentation" : "progress"}" a << "--backtrace" if ENV["VERBOSE"] || ENV["DEBUG"] a << "--seed #{ENV["SEED"]}" if ENV["SEED"] a << "--tag #{args[:tag]}" if args[:tag] diff --git a/test/spec/spec_helper.rb b/test/spec/spec_helper.rb index 15db6b5..fd01cf0 100644 --- a/test/spec/spec_helper.rb +++ b/test/spec/spec_helper.rb @@ -17,27 +17,6 @@ require "rake" require "rspec" require "rspec/its" -require "simplecov" - -# Check for coverage stuffs -formatters = [] - -if ENV["CODECOV_TOKEN"] || ENV["CI"] - require "codecov" - formatters << SimpleCov::Formatter::Codecov -end - -unless formatters.empty? - SimpleCov.formatters = formatters -end - -SimpleCov.start do - # Don't get coverage on the test cases themselves. - add_filter "/spec/" - add_filter "/test/" - # Codecov doesn't automatically ignore vendored files. - add_filter "/vendor/" -end require "kitchen/driver/docker"