提交 6ec9d8b2 编写于 作者: J Justin Collins

Quiet tests

上级 0cf88848
......@@ -25,20 +25,10 @@ module BrakemanTester
#Run scan on app at the given path
def run_scan path, name = nil, opts = {}
opts.merge! :app_path => "#{TEST_PATH}/apps/#{path}",
:quiet => false,
:url_safe_methods => [:ensure_valid_proto!]
announce "Processing #{name} application..."
Brakeman.run(opts).report.to_hash
end
#Make an announcement
def announce msg
$stderr.puts "-" * 40
$stderr.puts msg
$stderr.puts "-" * 40
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册