module ForemanTasks module TestExtensions module AccessPermissionsTestExtension def setup super if defined?(AccessPermissionsTest) && self.class == AccessPermissionsTest test_name = @method_name || @NAME skip 'used by proxy only' if test_name.include?('foreman_tasks/api/tasks/callback') end end end end end ActiveSupport::TestCase.send(:include, ForemanTasks::TestExtensions::AccessPermissionsTestExtension)