File: rspec.rake

package info (click to toggle)
ruby-asciidoctor-pdf 2.3.19-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,972 kB
  • sloc: ruby: 44,316; sh: 133; java: 45; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (3)
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