blob: 1d9a8280e0f9e5bc9d79ae161659f5fa7a84aef6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# frozen_string_literal: true
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 $!.message
end
|