blob: 3e433d18bf53481f317484146c3afbc99f5862b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# frozen_string_literal: true
require 'English'
begin
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
rescue LoadError
warn $ERROR_INFO.message
end
|