From 4de1e563248c7680d35ea26759869c5823a2328f Mon Sep 17 00:00:00 2001 From: Oleh Fedorenko Date: Fri, 18 Oct 2024 14:20:43 +0000 Subject: [PATCH] Fixes #37928 - Support Rails 7.0 --- test/unit/config_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/config_test.rb b/test/unit/config_test.rb index 6310086c..549f0055 100644 --- a/test/unit/config_test.rb +++ b/test/unit/config_test.rb @@ -63,7 +63,7 @@ class ConfigTest < ActiveSupport::TestCase test 'whitelisting mode requires blacklist to be set' do config.listing_mode = ForemanVirtWhoConfigure::Config::WHITELIST refute config.valid? - assert_includes config.errors.keys, :whitelist + assert_includes config.errors.attribute_names, :whitelist config.whitelist = 'a.host' assert config.valid? @@ -72,7 +72,7 @@ class ConfigTest < ActiveSupport::TestCase test 'blacklisting mode requires blacklist to be set' do config.listing_mode = ForemanVirtWhoConfigure::Config::BLACKLIST refute config.valid? - assert_includes config.errors.keys, :blacklist + assert_includes config.errors.attribute_names, :blacklist config.blacklist = 'a.host' assert config.valid?