spec.rake 552 B

123456789101112131415161718192021
  1. # frozen_string_literal: true
  2. if Rake::Task.task_defined?('spec:system')
  3. namespace :spec do
  4. task :enable_system_specs do # rubocop:disable Rails/RakeEnvironment
  5. ENV['RUN_SYSTEM_SPECS'] = 'true'
  6. end
  7. end
  8. Rake::Task['spec:system'].enhance ['spec:enable_system_specs']
  9. end
  10. if Rake::Task.task_defined?('spec:search')
  11. namespace :spec do
  12. task :enable_search_specs do # rubocop:disable Rails/RakeEnvironment
  13. ENV['RUN_SEARCH_SPECS'] = 'true'
  14. end
  15. end
  16. Rake::Task['spec:search'].enhance ['spec:enable_search_specs']
  17. end