require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'rubocop/rake_task' task default: [:spec, :rubocop] task spec: [:'spec:unit', :'spec:integration'] namespace :spec do desc 'run unit tests' RSpec::Core::RakeTask.new(:unit) do |task| task.pattern = 'spec/unit/**/*_spec.rb' end desc 'run integration tests' RSpec::Core::RakeTask.new(:integration) do |task| task.pattern = 'spec/integration/**/*_spec.rb' end end RuboCop::RakeTask.new