Rakefile
# frozen_string_literal: true
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require_relative 'config/application'
Rails.application.load_tasks
task default: %i[rubocop spec]
begin
require 'rubocop/rake_task'
RuboCop::RakeTask.new
rescue LoadError
desc 'Run rubocop'
task :rubocop do
abort 'Please install the rubocop gem to run rubocop.'
end
end
Rake::Task['spec'].clear
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = 'spec/**/*_spec.rb'
# The modsulator integration_tests are very slow
t.exclude_pattern = 'spec/integration_tests/*_spec.rb'
end