]> source.dussan.org Git - redmine.git/commitdiff
remove unneeded Relation#all from ProjectTest#test_destroy
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 04:30:17 +0000 (04:30 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 04:30:17 +0000 (04:30 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12556 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/project_test.rb

index aa926562ab048ae5ac6b01b612e2aa52e01151c7..85dbb317d9009c57acf2932c842d2e3cc6ce7b30 100644 (file)
@@ -202,7 +202,7 @@ class ProjectTest < ActiveSupport::TestCase
     # 2 active members
     assert_equal 2, @ecookbook.members.size
     # and 1 is locked
-    assert_equal 3, Member.where('project_id = ?', @ecookbook.id).all.size
+    assert_equal 3, Member.where(:project_id => @ecookbook.id).count
     # some boards
     assert @ecookbook.boards.any?