diff options
author | Tim Smith <tsmith@chef.io> | 2016-09-29 14:31:07 -0700 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-10-07 11:11:37 +0100 |
commit | ad54419ab0f194c1d89ee8f3065a7a1f053ce6f2 (patch) | |
tree | f3bd23447a39a37649868da8a69b29d4fda811d0 /Rakefile | |
parent | 120b1247484e6553035097e2f7e7e935425e968c (diff) | |
download | mixlib-shellout-ad54419ab0f194c1d89ee8f3065a7a1f053ce6f2.tar.gz |
Add Chefstyle to Rake and Gemspec
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -3,9 +3,14 @@ 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: :spec +task default: [:style, :spec] |