mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 23:11:39 +08:00
FIX: Broken spec. Stupid mocking.
This commit is contained in:
parent
65392f37bb
commit
b061ba5c52
@ -92,7 +92,7 @@ describe EmbedController do
|
|||||||
|
|
||||||
it "creates a topic view when a topic_id is found" do
|
it "creates a topic view when a topic_id is found" do
|
||||||
TopicEmbed.expects(:topic_id_for_embed).returns(123)
|
TopicEmbed.expects(:topic_id_for_embed).returns(123)
|
||||||
TopicView.expects(:new).with(123, nil, {limit: 100, exclude_first: true, exclude_deleted_users: true})
|
TopicView.expects(:new).with(123, nil, {limit: 100, exclude_first: true, exclude_deleted_users: true, exclude_hidden: true})
|
||||||
get :comments, embed_url: embed_url
|
get :comments, embed_url: embed_url
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user