Fixed issue causing misidentification of debug modules.

This commit is contained in:
Jack Walker
2020-04-24 14:50:00 +10:00
parent 17ae1c9894
commit bf2458392c

View File

@@ -99,7 +99,7 @@ RSpec.describe 'BeEF Debug Command Modules:', :run_on_browserstack => true do
@debug_mod_names_ids = {}
@debug_mods = @debug_mod_ids.to_a.select { |cmd_mod| cmd_mod[1]['category'] == 'Debug' }
.map do |debug_mod|
@debug_mod_names_ids[debug_mod[1]['class']] = debug_mod[0]['id']
@debug_mod_names_ids[debug_mod[1]['class']] = debug_mod[1]['id']
end
end