mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
FIX: Improve Onebox detection (#8019)
Follow-up to 7c83d2eeb261ac676a8320e6a704752c56fd242e.
This commit is contained in:
@ -268,6 +268,7 @@ describe DiscourseNarrativeBot::NewUserNarrative do
|
||||
|
||||
describe 'onebox tutorial' do
|
||||
before do
|
||||
Oneboxer.stubs(:cached_onebox).with('https://en.wikipedia.org/wiki/ROT13').returns('oneboxed Wikipedia')
|
||||
narrative.set_data(user, state: :tutorial_onebox, topic_id: topic.id)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user