Rakefile in rubycritic-1.1.1 vs Rakefile in rubycritic-1.2.0

- old
+ new

@@ -1,10 +1,13 @@ require "bundler/gem_tasks" require "rake/testtask" +require "rubocop/rake_task" -task :default => :test - -Rake::TestTask.new do |t| - t.libs.push "lib" - t.libs.push "test" - t.pattern = "test/**/*_test.rb" +Rake::TestTask.new do |task| + task.libs.push "lib" + task.libs.push "test" + task.pattern = "test/**/*_test.rb" end + +RuboCop::RakeTask.new + +task :default => [:test, :rubocop]