提交 468418ec 编写于 作者: J Justin Collins

Adjust expected warnings for CVEs

上级 566cb53c
......@@ -11,8 +11,7 @@ class OnlyFilesOptionTests < Test::Unit::TestCase
:controller => 0,
:model => 0,
:template => 1,
:generic => 4 }
:generic => 8 }
if RUBY_PLATFORM == 'java'
@expected[:generic] += 1
......
......@@ -12,13 +12,13 @@ class Rails2Tests < Test::Unit::TestCase
:controller => 1,
:model => 3,
:template => 45,
:generic => 46 }
:generic => 48 }
else
@expected ||= {
:controller => 1,
:model => 3,
:template => 45,
:generic => 47 }
:generic => 49 }
end
end
......@@ -1252,13 +1252,13 @@ class Rails2WithOptionsTests < Test::Unit::TestCase
:controller => 1,
:model => 4,
:template => 45,
:generic => 46 }
:generic => 48 }
else
@expected ||= {
:controller => 1,
:model => 4,
:template => 45,
:generic => 47 }
:generic => 49 }
end
end
......
......@@ -16,7 +16,7 @@ class Rails3Tests < Test::Unit::TestCase
:controller => 1,
:model => 8,
:template => 38,
:generic => 63
:generic => 66
}
if RUBY_PLATFORM == 'java'
......
......@@ -15,7 +15,7 @@ class Rails31Tests < Test::Unit::TestCase
:model => 3,
:template => 23,
:controller => 4,
:generic => 74 }
:generic => 77 }
end
def test_without_protection
......
......@@ -11,8 +11,7 @@ class Rails32Tests < Test::Unit::TestCase
:controller => 0,
:model => 5,
:template => 11,
:generic => 7 }
:generic => 10 }
if RUBY_PLATFORM == 'java'
@expected[:generic] += 1
......
......@@ -15,7 +15,7 @@ class Rails4Tests < Test::Unit::TestCase
:controller => 0,
:model => 0,
:template => 1,
:generic => 6
:generic => 9
}
end
......
......@@ -11,7 +11,7 @@ class RailsWithXssPluginTests < Test::Unit::TestCase
:controller => 1,
:model => 3,
:template => 2,
:generic => 20 }
:generic => 22 }
end
def report
......
......@@ -3,9 +3,9 @@ class TestTabsOutput < Test::Unit::TestCase
def test_reported_warnings
if Brakeman::Scanner::RUBY_1_9
assert_equal Report.lines.to_a.count, 96
assert_equal 98, Report.lines.to_a.count
else
assert_equal Report.lines.to_a.count, 97
assert_equal 99, Report.lines.to_a.count
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册