Rakefile in lovely_rufus-0.2.1 vs Rakefile in lovely_rufus-0.3.0
- old
+ new
@@ -1,19 +1,18 @@
require 'rake/testtask'
require 'reek/rake/task'
require 'rubocop/rake_task'
-task default: %i(spec rubocop reek)
+task default: %i(test rubocop reek)
-Rake::TestTask.new(:spec) do |task|
- task.test_files = FileList['spec/**/*_spec.rb']
- task.warning = true
+Rake::TestTask.new do |task|
+ task.pattern = 'test/**/*_test.rb'
+ task.warning = true
end
Reek::Rake::Task.new do |task|
- task.config_files = 'config/reek.yml'
+ task.config_file = 'config/reek.yml'
task.fail_on_error = false
- task.reek_opts = '--quiet'
end
RuboCop::RakeTask.new do |task|
task.options << '--display-cop-names'
end