Skip to content

Commit 59d6ad5

Browse files
committed
Restore specs
1 parent c3f18aa commit 59d6ad5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

spec/lib/msf/core/opt_address_range_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
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" }
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'}
1415
]
1516
invalid_values = [
1617
# Too many dots

spec/lib/msf/core/opt_raw_spec.rb

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

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

0 commit comments

Comments
 (0)