diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6b154cc13..3504ffb03 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -105,14 +105,7 @@ def wait end end -# TODO: Address these warnings: -# /path/to/spec/spec_helper.rb:112: warning: already initialized constant ActiveRecord::LogSubscriber::IGNORE_PAYLOAD_NAMES -# /path/to/rails/activerecord/lib/active_record/log_subscriber.rb:5: warning: previous definition of IGNORE_PAYLOAD_NAMES was here -module ActiveRecord - class LogSubscriber - IGNORE_PAYLOAD_NAMES = ["EXPLAIN"] - end -end +ActiveRecord::LogSubscriber::IGNORE_PAYLOAD_NAMES.replace(["EXPLAIN"]) module SchemaSpecHelper def schema_define(&block)