1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
module UnitTests
class Configuration
CLASSES = %i[
ActiveModelHelpers
ActiveModelVersions
ActiveRecordVersions
ClassBuilder
ColumnTypeHelpers
ControllerBuilder
DatabaseHelpers
I18nFaker
MailerBuilder
MessageHelpers
ModelBuilder
RailsVersions
RubyVersions
ValidationMatcherScenarioHelpers
].freeze
def self.configure_example_groups(config)
CLASSES.each do |class_name|
constantized_class = "UnitTests::#{class_name}"
Object.const_get(constantized_class).configure_example_group(config)
end
end
end
end
|