Skip to content

Commit b18f5b1

Browse files
David MaloneyDavid Maloney
authored andcommitted
Start with the duh stuff, responds_to
1 parent 49999a5 commit b18f5b1

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
require 'rex/post/meterpreter/packet'
2+
3+
describe Rex::Post::Meterpreter::Tlv do
4+
subject{Rex::Post::Meterpreter::Tlv.new(Rex::Post::Meterpreter::TLV_TYPE_STRING,"test")}
5+
6+
it "should respond to type" do
7+
subject.should respond_to :type
8+
end
9+
10+
it "should respond to value" do
11+
subject.should respond_to :value
12+
end
13+
14+
it "should respond to compress" do
15+
subject.should respond_to :compress
16+
end
17+
18+
it "should respond to inspect" do
19+
subject.should respond_to :inspect
20+
end
21+
22+
it "should respond to meta_type?" do
23+
subject.should respond_to :meta_type?
24+
end
25+
26+
it "should respond to type?" do
27+
subject.should respond_to :type?
28+
end
29+
30+
it "should respond to value?" do
31+
subject.should respond_to :value?
32+
end
33+
34+
it "should respond to to_r" do
35+
subject.should respond_to :to_r
36+
end
37+
38+
it "should respond to from_r" do
39+
subject.should respond_to :from_r
40+
end
41+
42+
end

0 commit comments

Comments
 (0)