tabs_output.rb 326 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11
class TestTabsOutput < Test::Unit::TestCase
  Report = Brakeman.run(:app_path => "#{TEST_PATH}/apps/rails2", :quiet => true).report.to_tabs

  def test_reported_warnings
    if Brakeman::Scanner::RUBY_1_9
      assert_equal Report.lines.to_a.count, 96
    else
      assert_equal Report.lines.to_a.count, 97
    end
  end
end