Rakefile in loog-0.1.0 vs Rakefile in loog-0.2.0
- old
+ new
@@ -35,12 +35,12 @@
end
task default: %i[clean test rubocop]
require 'rake/testtask'
-desc 'Run all unit tests'
Rake::TestTask.new(:test) do |test|
+ Rake::Cleaner.cleanup_files(['coverage'])
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = false
end
@@ -50,10 +50,9 @@
rdoc.rdoc_dir = 'rdoc'
rdoc.rdoc_files.include('README.md', 'lib/**/*.rb')
end
require 'rubocop/rake_task'
-desc 'Run RuboCop on all directories'
RuboCop::RakeTask.new(:rubocop) do |task|
task.fail_on_error = true
task.requires << 'rubocop-rspec'
end