From 7960f543a401614a2034a2b863ac7ba37548d67e Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 9 Jan 2014 04:30:17 +0000 Subject: [PATCH] remove unneeded Relation#all from ProjectTest#test_destroy git-svn-id: http://svn.redmine.org/redmine/trunk@12556 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/project_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index aa926562a..85dbb317d 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -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? -- 2.39.5