Skip to content

Commit c7da9d6

Browse files
author
HD Moore
committed
Move file: prefix checks out of option class specs (would need to go into console test specs at some point)
1 parent dbe3fe3 commit c7da9d6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

spec/lib/msf/core/options/opt_address_range_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
{ :value => "192.0.2.0-255", :normalized => "192.0.2.0-255" },
1111
{ :value => "192.0.2.0,1-255", :normalized => "192.0.2.0,1-255" },
1212
{ :value => "192.0.2.*", :normalized => "192.0.2.*" },
13-
{ :value => "192.0.2.0-192.0.2.255", :normalized => "192.0.2.0-192.0.2.255" },
14-
{ :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'},
13+
{ :value => "192.0.2.0-192.0.2.255", :normalized => "192.0.2.0-192.0.2.255" }
1514
]
1615
invalid_values = [
1716
# Too many dots

spec/lib/msf/core/options/opt_raw_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
describe Msf::OptRaw do
77

88
valid_values = [
9-
{ :value => 'foo', :normalized => 'foo' },
10-
{ :value => "file:#{File.expand_path('string_list.txt',FILE_FIXTURES_PATH)}",:normalized => "foo\nbar\nbaz" },
9+
{ :value => 'foo', :normalized => 'foo' }
1110
]
1211
invalid_values = []
1312

0 commit comments

Comments
 (0)