tootlab-mastodon/lib/tasks/spec.rake

14 lines
371 B
Ruby
Raw Normal View History

2023-07-28 17:09:49 -04:00
# frozen_string_literal: true
if Rake::Task.task_defined?('spec:system')
namespace :spec do
task :enable_system_specs do # rubocop:disable Rails/RakeEnvironment
2024-01-12 04:12:31 -05:00
ENV['LOCAL_DOMAIN'] = 'localhost:3000'
ENV['LOCAL_HTTPS'] = 'false'
2023-07-28 17:09:49 -04:00
ENV['RUN_SYSTEM_SPECS'] = 'true'
end
end
Rake::Task['spec:system'].enhance ['spec:enable_system_specs']
end