mirror of
https://github.com/redmine/redmine.git
synced 2025-11-05 04:45:57 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user