From 58210c78a60fdc55f53e9043782afe5016f1d0c2 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 6 Nov 2024 09:15:17 +0100 Subject: [PATCH] drop feature_with_local_method, it's unused now --- test/lib/utils/backup_test.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/lib/utils/backup_test.rb b/test/lib/utils/backup_test.rb index 2561fcefb..a1bbe3dd1 100644 --- a/test/lib/utils/backup_test.rb +++ b/test/lib/utils/backup_test.rb @@ -41,14 +41,6 @@ def assume_feature_absent(label) ForemanMaintain.detector.stubs(:feature).with(label).returns(false) end - def feature_with_local_method(label, return_value) - fake_feature = Minitest::Mock.new - ret_hash = { 'host' => 'abc.example.com' } - fake_feature.expect(:configuration, ret_hash) - fake_feature.expect(:local?, return_value) - ForemanMaintain.detector.stubs(:feature).with(label).returns(fake_feature) - end - it 'Validates katello standard backup' do assume_feature_present(:pulpcore_database) kat_stand_backup = subject.new(katello_standard)