]> source.dussan.org Git - redmine.git/commitdiff
Rails4 compatibility of ProjectTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 26 Dec 2013 10:45:13 +0000 (10:45 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 26 Dec 2013 10:45:13 +0000 (10:45 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12466 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/project_test.rb

index 945f775e8aa0bc1c3f34c46ead61ce3dfec3a9e5..69b2a07e3f530aa25f444b43bab214863e3a367e 100644 (file)
@@ -258,8 +258,8 @@ class ProjectTest < ActiveSupport::TestCase
     assert_equal 0, WikiPage.count
     assert_equal 0, WikiContent.count
     assert_equal 0, WikiContent::Version.count
-    assert_equal 0, Project.connection.select_all("SELECT * FROM projects_trackers").size
-    assert_equal 0, Project.connection.select_all("SELECT * FROM custom_fields_projects").size
+    assert_equal 0, Project.connection.select_all("SELECT * FROM projects_trackers").count
+    assert_equal 0, Project.connection.select_all("SELECT * FROM custom_fields_projects").count
     assert_equal 0, CustomValue.where(:customized_type => ['Project', 'Issue', 'TimeEntry', 'Version']).count
   end