require_relative '../spec_helper' describe name_from_filename do include_examples 'plugin' before( :all ) do issues = [Arachni::Issue.new( url: 'http://localhost' )] framework.modules.register_results( issues ) end it 'should resolve vulnerable hostnames to IP addresses' do run [{ 'localhost' => '::1' }, { 'localhost' => '127.0.0.1' }].should include( results_for( name_from_filename )) end end