From e699458b3cc15e086919c468b9ab6e9a3403b4e1 2014-01-31 15:35:48 From: Toshi MARUYAMA Date: 2014-01-31 15:35:48 Subject: [PATCH] Rails4 compatibility of WatcherTest#test_watcher_users Rails4 has_many returns ActiveRecord::Associations::CollectionProxy not array git-svn-id: http://svn.redmine.org/redmine/trunk@12744 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/watcher_test.rb b/test/unit/watcher_test.rb index 8361e59..df49c78 100644 --- a/test/unit/watcher_test.rb +++ b/test/unit/watcher_test.rb @@ -56,7 +56,7 @@ class WatcherTest < ActiveSupport::TestCase def test_watcher_users watcher_users = Issue.find(2).watcher_users - assert_kind_of Array, watcher_users + assert_kind_of Array, watcher_users.collect{|w| w} assert_kind_of User, watcher_users.first end