FIX: Improve Onebox detection (#8019)

Follow-up to 7c83d2eeb261ac676a8320e6a704752c56fd242e.
This commit is contained in:
Bianca Nenciu
2019-09-10 13:59:48 +03:00
committed by GitHub
parent ddd45d1419
commit 0d22beb81d
4 changed files with 9 additions and 5 deletions

View File

@ -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