# frozen_string_literal: true require 'rspec/core/rake_task' RSpec::Core::RakeTask.new :spec do |t| t.verbose = true opts = %w[-f progress] opts.append '-t', '~visual', '-t', '~cli' if ENV['UNIT'] opts.unshift '-w' if $VERBOSE || ENV['COVERAGE'] t.rspec_opts = opts end