Skip to content

Commit

Permalink
Removed UiConstants => removed from spec/support/test_contamination.r…
Browse files Browse the repository at this point in the history
…b too
  • Loading branch information
europ committed Sep 12, 2017
1 parent d0b9e45 commit 6e4e760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/test_contamination.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e4e760

Please sign in to comment.