提交 129ccdff 编写于 作者: J Justin Collins

Allow test rescanning of different apps

上级 f3afc9d5
......@@ -111,13 +111,13 @@ module BrakemanTester::RescanTestHelper
#given in `changed`.
#
#Provide an array of changed files for rescanning.
def before_rescan_of changed
def before_rescan_of changed, app = "rails3.2"
changed = [changed] unless changed.is_a? Array
Dir.mktmpdir do |dir|
@dir = dir
FileUtils.cp_r "#{TEST_PATH}/apps/rails3.2/.", dir
FileUtils.cp_r "#{TEST_PATH}/apps/#{app}/.", dir
@original = Brakeman.run :app_path => dir, :debug => false
yield dir if block_given?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册