FIX: If a user is deleted, don't break embedded comments for admins.

This commit is contained in:
Robin Ward
2014-06-18 17:39:36 -04:00
parent 08b8cacdb0
commit 60cb5ea6a9
3 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ describe EmbedController do
it "creates a topic view when a topic_id is found" do
TopicEmbed.expects(:topic_id_for_embed).returns(123)
TopicView.expects(:new).with(123, nil, {limit: 100, exclude_first: true})
TopicView.expects(:new).with(123, nil, {limit: 100, exclude_first: true, exclude_deleted_users: true})
get :comments, embed_url: embed_url
end
end