Rakefile in mongoid-grid_fs-2.3.0 vs Rakefile in mongoid-grid_fs-2.4.0
- old
+ new
@@ -1,12 +1,15 @@
-require "bundler/gem_tasks"
-require "bundler/setup"
-require "rake/testtask"
+require 'bundler/gem_tasks'
+require 'bundler/setup'
+require 'rake/testtask'
Rake::TestTask.new(:test) do |t|
- t.libs << "lib"
- t.libs << "test"
- t.pattern = "test/**/*_test.rb"
+ t.libs << 'lib'
+ t.libs << 'test'
+ t.pattern = 'test/**/*_test.rb'
t.verbose = false
end
-task :default => :test
+require 'rubocop/rake_task'
+RuboCop::RakeTask.new(:rubocop)
+
+task default: [:rubocop, :test]