diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-31 15:35:48 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-31 15:35:48 +0000 |
commit | e699458b3cc15e086919c468b9ab6e9a3403b4e1 (patch) | |
tree | d52642e2810333da49eda910421f342837c15bb9 /test/unit/watcher_test.rb | |
parent | 619857e1a4ac46c3cd170f459d381f4c5905fd37 (diff) | |
download | redmine-e699458b3cc15e086919c468b9ab6e9a3403b4e1.tar.gz redmine-e699458b3cc15e086919c468b9ab6e9a3403b4e1.zip |
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
Diffstat (limited to 'test/unit/watcher_test.rb')
-rw-r--r-- | test/unit/watcher_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/watcher_test.rb b/test/unit/watcher_test.rb index 8361e59ab..df49c7835 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 |