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 f274a96 commit 97adb2aCopy full SHA for 97adb2a
spec/msfcli_spec.rb
@@ -8,20 +8,21 @@
8
require 'msf/base'
9
10
11
-# Get stdout:
12
-# http://stackoverflow.com/questions/11349270/test-output-to-command-line-with-rspec
13
-def get_stdout(&block)
14
- out = $stdout
15
- $stdout = fake = StringIO.new
16
- begin
17
- yield
18
- ensure
19
- $stdout = out
+describe Msfcli do
+
+ # Get stdout:
+ # http://stackoverflow.com/questions/11349270/test-output-to-command-line-with-rspec
+ def get_stdout(&block)
+ out = $stdout
+ $stdout = fake = StringIO.new
+ begin
+ yield
20
+ ensure
21
+ $stdout = out
22
+ end
23
+ fake.string
24
end
- fake.string
-end
25
-describe Msfcli do
26
context "Class methods" do
27
28
context ".usage" do
0 commit comments