Move file: prefix checks out of option class specs (would need to go into console test specs at some point)

bug/bundler_fix
HD Moore 2015-03-23 15:09:22 -05:00
parent dbe3fe38fd
commit c7da9d6f79
2 changed files with 2 additions and 4 deletions

View File

@ -10,8 +10,7 @@ describe Msf::OptAddressRange do
{ :value => "192.0.2.0-255", :normalized => "192.0.2.0-255" },
{ :value => "192.0.2.0,1-255", :normalized => "192.0.2.0,1-255" },
{ :value => "192.0.2.*", :normalized => "192.0.2.*" },
{ :value => "192.0.2.0-192.0.2.255", :normalized => "192.0.2.0-192.0.2.255" },
{ :value => "file:#{File.expand_path('short_address_list.txt',FILE_FIXTURES_PATH)}", :normalized => '192.168.1.1 192.168.1.2 192.168.1.3 192.168.1.4 192.168.1.5'},
{ :value => "192.0.2.0-192.0.2.255", :normalized => "192.0.2.0-192.0.2.255" }
]
invalid_values = [
# Too many dots

View File

@ -6,8 +6,7 @@ require 'msf/core/option_container'
describe Msf::OptRaw do
valid_values = [
{ :value => 'foo', :normalized => 'foo' },
{ :value => "file:#{File.expand_path('string_list.txt',FILE_FIXTURES_PATH)}",:normalized => "foo\nbar\nbaz" },
{ :value => 'foo', :normalized => 'foo' }
]
invalid_values = []