diff --git a/test/application_checker_test.rb b/test/application_checker_test.rb index cbab14a..34bb2d5 100644 --- a/test/application_checker_test.rb +++ b/test/application_checker_test.rb @@ -119,6 +119,13 @@ class ApplicationCheckerTest < ActiveSupport::TestCase assert @checker.alerts.has_key?("Known broken plugins") end + def test_ignoring_comments + make_file("config/", "routes.rb", "# map.connect 'fail'") + @checker.check_routes + + assert !@checker.alerts.has_key?("Old router API") + end + def teardown clear_files