require_relative '../../spec_helper' describe name_from_filename do include_examples 'plugin' before( :all ) do @modname = 'Uber kewl module' @element = 'form' @method = 'GET' @issue_name = 'my issue' @input_name = 'vulnerable_input' @issues = [] 10.times do |i| @issues << Arachni::Issue.new( url: 'http://test.com/' + i.to_s, name: @issue_name, internal_modname: @modname, var: @input_name, elem: @element, method: @method ) end issues = Arachni::Issue.new( url: 'http://test.com/hua', name: 'other issue', internal_modname: 'modname', var: 'input_name', elem: 'cookie', method: 'POST' ) framework.modules.register_results( @issues | [issues] ) end def results YAML.load <