summaryrefslogtreecommitdiff
path: root/chef-utils/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'chef-utils/Rakefile')
-rw-r--r--chef-utils/Rakefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/chef-utils/Rakefile b/chef-utils/Rakefile
new file mode 100644
index 0000000000..df2f59e298
--- /dev/null
+++ b/chef-utils/Rakefile
@@ -0,0 +1,13 @@
+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.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