summaryrefslogtreecommitdiff
path: root/Rakefile
blob: dbd6f4f8df8504cb0eee2c3f6bc33cd109e99804 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'bundler'
require "rspec/core/rake_task"

Bundler::GemHelper.install_tasks

require "chefstyle"
require "rubocop/rake_task"
desc "Run Ruby style checks"
RuboCop::RakeTask.new(:style)

desc "Run all specs in spec directory"
RSpec::Core::RakeTask.new(:spec) do |t|
  t.pattern = FileList["spec/**/*_spec.rb"]
end

task default: [:style, :spec]