From 87e370c3351aa82818d67235682fa3dfbfcf8fd6 Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Mon, 20 Sep 2010 22:34:29 -0400 Subject: [PATCH] Adding a test for 7a69f41 --- test/application_checker_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/application_checker_test.rb b/test/application_checker_test.rb index a5edd4d..66347b4 100644 --- a/test/application_checker_test.rb +++ b/test/application_checker_test.rb @@ -58,6 +58,12 @@ class ApplicationCheckerTest < ActiveSupport::TestCase assert @checker.alerts.has_key?("Soon-to-be-deprecated ActiveRecord calls") end + def test_check_svn_subdirs_are_not_included + make_file("app/models/.svn/text-base", "foo.rb.tmp", "Post.find(:all)") + @checker.check_ar_methods + assert @checker.alerts.empty? + end + def test_check_validation_on_methods make_file("app/models", "post.rb", "validate_on_create :comments_valid?") @checker.check_validation_on_methods