Rakefile
raw| 1 | # frozen_string_literal: true |
| 2 | |
| 3 | require 'rubygems' |
| 4 | require 'bundler' |
| 5 | Bundler::GemHelper.install_tasks |
| 6 | |
| 7 | $LOAD_PATH.unshift File.expand_path('lib', __dir__) |
| 8 | |
| 9 | require 'rubocop/rake_task' |
| 10 | RuboCop::RakeTask.new |
| 11 | |
| 12 | require 'rspec/core/rake_task' |
| 13 | RSpec::Core::RakeTask.new |
| 14 | |
| 15 | namespace :spec do |
| 16 | desc 'run (slow) performance tests' |
| 17 | RSpec::Core::RakeTask.new(:slow) do |t| |
| 18 | t.rspec_opts = %w[--tag slow] |
| 19 | end |
| 20 | end |
| 21 | |
| 22 | task default: %w[spec spec:slow] |