Rakefile in acts_as_archival-1.1.1 vs Rakefile in acts_as_archival-1.2.0
- old
+ new
@@ -1,13 +1,16 @@
#!/usr/bin/env rake
require "bundler/gem_tasks"
require "rake/testtask"
+require "rubocop/rake_task"
-desc "Default: run unit tests."
-task :default => :test
+RuboCop::RakeTask.new
+desc "Default: run all available test suites."
+task default: [:rubocop, :test]
+
desc "Test the acts_as_archival plugin."
Rake::TestTask.new(:test) do |t|
- t.libs << "test"
+ t.libs << "test"
t.pattern = "test/**/*_test.rb"
t.verbose = true
end