Rakefile in kitchen-docker-2.4.0 vs Rakefile in kitchen-docker-2.5.0
- old
+ new
@@ -18,11 +18,25 @@
desc "Run all quality tasks"
task :quality => [:cane, :tailor, :stats]
task :default => [:quality]
-begin
- require 'kitchen/rake_tasks'
- Kitchen::RakeTasks.new
-rescue LoadError
- puts ">>>>> Kitchen gem not loaded, omitting tasks" unless ENV['CI']
+# begin
+# require 'kitchen/rake_tasks'
+# Kitchen::RakeTasks.new
+# rescue LoadError
+# puts ">>>>> Kitchen gem not loaded, omitting tasks" unless ENV['CI']
+# end
+
+# Create the spec task.
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec, :tag) do |t, args|
+ t.rspec_opts = [].tap do |a|
+ a << '--color'
+ a << "--format #{ENV['CI'] ? 'documentation' : 'Fuubar'}"
+ a << '--backtrace' if ENV['VERBOSE'] || ENV['DEBUG']
+ a << "--seed #{ENV['SEED']}" if ENV['SEED']
+ a << "--tag #{args[:tag]}" if args[:tag]
+ a << "--default-path test"
+ a << '-I test/spec'
+ end.join(' ')
end