This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2023-07-28 14:09:49 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
if Rake::Task.task_defined?('spec:system')
|
|
|
|
namespace :spec do
|
|
|
|
task :enable_system_specs do # rubocop:disable Rails/RakeEnvironment
|
|
|
|
ENV['RUN_SYSTEM_SPECS'] = 'true'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
Rake::Task['spec:system'].enhance ['spec:enable_system_specs']
|
|
|
|
end
|
2023-09-08 07:17:55 -07:00
|
|
|
|
|
|
|
if Rake::Task.task_defined?('spec:search')
|
|
|
|
namespace :spec do
|
|
|
|
task :enable_search_specs do # rubocop:disable Rails/RakeEnvironment
|
|
|
|
ENV['RUN_SEARCH_SPECS'] = 'true'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
Rake::Task['spec:search'].enhance ['spec:enable_search_specs']
|
|
|
|
end
|