提交 aa927259 编写于 作者: J Justin Collins

Fix test method name/comment for lib processing

上级 2738c6cf
......@@ -3,8 +3,8 @@ class SweetLib
`ls #{bad}`
end
def test_find_group
#Should warn, no escaping done for :group
def test_command_injection_in_lib
#Should warn about command injection
system("rm #{@bad}")
end
end
......@@ -567,7 +567,7 @@ class Rails4Tests < Test::Unit::TestCase
def test_command_injection_interpolated_string_in_library
assert_warning :type => :warning,
:warning_code => 14,
:fingerprint => "69855e4f6509c389b337195c00517b13b89a69773dcd1281ee3ae5577c8f2cf0",
:fingerprint => "899bf57685de767746ef220e51883b62eca23b505a6e17e57dcd8c2ca57959b8",
:warning_type => "Command Injection",
:line => 8,
:message => /^Possible\ command\ injection/,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册