Troubleshooting
This commit is contained in:
@@ -92,8 +92,8 @@ RSpec.describe 'BeEF Debug Command Modules:', run_on_browserstack: true do
|
||||
@debug_mod_names_ids = {}
|
||||
@debug_mods = @debug_mod_ids.to_a.select do |cmd_mod|
|
||||
puts "cmd_mod:"
|
||||
p cmd_mod[1]
|
||||
category = Array(cmd_mod[1]['category']) # Ensure category is always an array
|
||||
p cmd_mod
|
||||
category = Array(cmd_mod[1]&.dig('category')) # Ensure category is always an array
|
||||
category.include?('Debug')
|
||||
end.map do |debug_mod|
|
||||
@debug_mod_names_ids[debug_mod[1]['class']] = debug_mod[1]['id']
|
||||
|
||||
Reference in New Issue
Block a user