aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activerecord/test/cases/enum_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/cases/enum_test.rb b/activerecord/test/cases/enum_test.rb
index 8673a99c45..0ae156320a 100644
--- a/activerecord/test/cases/enum_test.rb
+++ b/activerecord/test/cases/enum_test.rb
@@ -580,7 +580,9 @@ class EnumTest < ActiveRecord::TestCase
def self.name
"Book"
end
- enum status: [:sent, :not_sent]
+ silence_warnings do
+ enum status: [:sent, :not_sent]
+ end
end
assert_match(expected_message, logger.logged(:warn).first)