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:
parent
619857e1a4
commit
e699458b3c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue