From 3ba21b2a0f5a102fdda7191fe205590e789450ce Mon Sep 17 00:00:00 2001 From: zinduolis Date: Sun, 27 Oct 2024 18:45:13 +1000 Subject: [PATCH] Troubleshooting --- spec/beef/modules/debug/test_beef_debugs_spec.rb | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/spec/beef/modules/debug/test_beef_debugs_spec.rb b/spec/beef/modules/debug/test_beef_debugs_spec.rb index 456924d75..6024e1356 100644 --- a/spec/beef/modules/debug/test_beef_debugs_spec.rb +++ b/spec/beef/modules/debug/test_beef_debugs_spec.rb @@ -93,10 +93,15 @@ RSpec.describe 'BeEF Debug Command Modules:', run_on_browserstack: true do @debug_mods = @debug_mod_ids.to_a.select do |cmd_mod| puts "cmd_mod:" p cmd_mod - category = Array(cmd_mod[1]&.dig('category')) # Ensure category is always an array - p category - category.include?('Debug') - p category.include?('Debug') + category = cmd_mod[1]&.dig('category') + category_string = if category.is_a?(Array) + category.join(', ') + else + category.to_s + end + p category_string + category_string.include?('Debug') + p category_string.include?('Debug') end.map do |debug_mod| @debug_mod_names_ids[debug_mod[1]['class']] = debug_mod[1]['id'] end