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
This commit is contained in:
Toshi MARUYAMA 2014-01-31 15:35:48 +00:00
parent 619857e1a4
commit e699458b3c
1 changed files with 1 additions and 1 deletions

View File

@ -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