mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:22:17 +08:00
Add rubocop to our build. (#5004)
This commit is contained in:
@ -92,12 +92,12 @@ 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, exclude_deleted_users: true, exclude_hidden: 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
|
||||
end
|
||||
|
||||
it "provides the topic retriever with the discourse username when provided" do
|
||||
TopicRetriever.expects(:new).with(embed_url, has_entry({author_username: discourse_username}))
|
||||
TopicRetriever.expects(:new).with(embed_url, has_entry(author_username: discourse_username))
|
||||
get :comments, embed_url: embed_url, discourse_username: discourse_username
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user