diff --git a/spec/support/test_contamination.rb b/spec/support/test_contamination.rb index 8e6753426b6..86212a49a88 100644 --- a/spec/support/test_contamination.rb +++ b/spec/support/test_contamination.rb @@ -8,7 +8,7 @@ def self.setup def self.patched_include Module.new do def include(included) - exceptions = ["ActionView::Helpers::NumberHelper", "SNMP::BER", "UiConstants"] # TODO: Why is UiConstants included in `main`??? :( + exceptions = ["ActionView::Helpers::NumberHelper", "SNMP::BER"] return super if included.to_s.in?(exceptions) raise RuntimeError, "Unexpected module '#{included}' included globally, did you mean to include it in a class?", caller end