Move file: prefix checks out of option class specs (would need to go into console test specs at some point)
parent
dbe3fe38fd
commit
c7da9d6f79
|
@ -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
|
||||
|
|
|
@ -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 = []
|
||||
|
||||
|
|
Loading…
Reference in New Issue