     ,
       Users.find userId,
         fields:
+          addresses: 1
+
+  Meteor.publish 'users-posts-and-addresses-together', (userId) ->
+    @related (user) ->
+      [
+        Posts.find(
+          _id:
+            $in: user?.posts or []
+        )
+      ,
+        Addresses.find(
+          _id:
+            $in: user?.addresses or []
+        )
+      ]
+    ,
+      Users.find userId,
+        fields:
+          posts: 1
           addresses: 1
 
   Meteor.publish 'users-posts-count', (userId, countId) ->

      @assertItemsEqual _.pluck(Addresses.find().fetch(), '_id'), []
  ]

# Register the test case.
ClassyTestCase.addTest new RelatedTestCase()

      ]
  ]

  @multiple: [
    ->
      @assertEqual Posts.find().fetch(), []
      @assertEqual Addresses.find().fetch(), []
