diff --git a/spec/beef/modules/debug/test_beef_debugs_spec.rb b/spec/beef/modules/debug/test_beef_debugs_spec.rb index bc7799e454..3f41732ce9 100644 --- a/spec/beef/modules/debug/test_beef_debugs_spec.rb +++ b/spec/beef/modules/debug/test_beef_debugs_spec.rb @@ -92,8 +92,8 @@ @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']