diff --git a/Rakefile b/Rakefile index 5e63157..7cb510f 100644 --- a/Rakefile +++ b/Rakefile @@ -10,3 +10,20 @@ namespace :gem do system 'gem build trollolo.gemspec' end end + +# rake task for rspec and rubocop +# rake -T (for rake tasks) +require 'rubocop/rake_task' +require 'rspec/core/rake_task' + +task default: %I[:rubocop, :spec] + +desc 'Run tests' +task :spec do + RSpec::Core::RakeTask.new +end + +desc 'Run rubocop' +task :rubocop do + RuboCop::RakeTask.new +end