Skip to content

Commit 2fc397b

Browse files
David MaloneyDavid Maloney
authored andcommitted
OptRaw specs
1 parent d66779b commit 2fc397b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# -*- coding:binary -*-
2+
3+
require 'spec_helper'
4+
require 'msf/core/option_container'
5+
6+
describe Msf::OptRaw do
7+
8+
valid_values = [
9+
{ :value => 'foo', :normalized => 'foo' },
10+
{ :value => "file:#{File.expand_path('string_list.txt',FILE_FIXTURES_PATH)}",:normalized => "foo\nbar\nbaz" },
11+
]
12+
invalid_values = []
13+
14+
it_behaves_like "an option", valid_values, invalid_values, 'raw'
15+
end

0 commit comments

Comments
 (0)