diff --git a/lib/inferno/config/boot/suites.rb b/lib/inferno/config/boot/suites.rb index 770bdba59..0e621b774 100644 --- a/lib/inferno/config/boot/suites.rb +++ b/lib/inferno/config/boot/suites.rb @@ -27,13 +27,10 @@ ObjectSpace.each_object(TracePoint, &:disable) Inferno::Entities::TestSuite.descendants.each do |descendant| - if descendant.id.blank? - raise StandardError, 'Error initializing test suites: custom test suite ID cannot be blank' - end # When ID not assigned in custom test suites, Runnable.id will return default ID # equal to the custom test suite's parent class name - if descendant.id == 'Inferno::Entities::TestSuite' - raise StandardError, 'Error initializing test suite #{descendant.name}: test suite ID is not set' + if descendant.id.blank? || descendant.id == 'Inferno::Entities::TestSuite' + raise StandardError, "Error initializing test suite #{descendant.name}: test suite ID is not set" end end end