Files
openproject/spec/support/rspec_disabled_specs.rb
Jan Sandbrink 0b87e7543f Freeze string literals in specs
Rolling out frozen string literals further by freezing all
string literals in core specs.
2025-05-05 09:29:55 +02:00

20 lines
726 B
Ruby

# frozen_string_literal: true
# Loads two files automatically from plugins:
#
# 1. `spec/disable_specs.rbs` to disable specs which don't work in conjunction with the
# respective plugin.
# 2. The config spec helper in `spec/config_spec_helper` makes sure that the core specs
# (and other plugins' specs) keep working with this plugin in an OpenProject configuration
# even if it changes things which would otherwise break existing specs.
Rails.application.config.plugins_to_test_paths.each do |dir|
["disabled_specs.rb", "disable_specs.rb", "config_spec_helper.rb"].each do |file_name|
file = File.join(dir, "spec", file_name)
if File.exist?(file)
puts "Loading #{file}"
require file
end
end
end