We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c42fe5 commit e483fe4Copy full SHA for e483fe4
spec/lib/msf/core/exploit/http/server_spec.rb
@@ -67,6 +67,23 @@
67
68
end
69
70
+ describe "#hardcoded_uripath" do
71
+ it "should call the ServiceManager's add_resource" do
72
+ server_module.start_service
73
+
74
+ mock_service.should_receive(:add_resource)
75
+ server_module.hardcoded_uripath('foo')
76
+ end
77
78
+ it "should re-raise if the resource has already been added" do
79
80
81
+ mock_service.should_receive(:add_resource).ordered.and_raise(RuntimeError)
82
83
+ expect { server_module.hardcoded_uripath('foo') }.to raise_error
84
85
86
87
88
89
0 commit comments