File: Rakefile

package info (click to toggle)
ruby-chef-utils 16.12.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 280 kB
  • sloc: ruby: 2,050; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 379 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true
require "bundler/gem_tasks"

task default: :spec

begin
  require "rspec/core/rake_task"
  desc "Run standard specs"
  RSpec::Core::RakeTask.new(:spec) do |t|
    t.verbose = false
    t.pattern = FileList["spec/**/*_spec.rb"]
  end
rescue LoadError
  STDERR.puts "\n*** RSpec not available. (sudo) gem install rspec to run unit tests. ***\n\n"
end