require 'rake/testtask' # Don't try to run rubocop in 1.9.3 require 'rubocop/rake_task' if RUBY_VERSION >= '2.1.0' desc 'Run tests' task default: [:test] desc 'Run rubocop' task :rubocop do RuboCop::RakeTask.new end