UX: Let users know they disabled discobot and they can't interact with it. (#12534)

Discobot will reply to users they need to enable onboarding tips to interact with them when issued a command.
This commit is contained in:
Roman Rizzi
2021-03-29 14:21:30 -03:00
committed by GitHub
parent f0b2e77abb
commit 87b5d16c10
5 changed files with 29 additions and 3 deletions

View File

@ -167,4 +167,12 @@ describe User do
expect(DiscourseNarrativeBot::Store.get(user.id)).to eq(nil)
end
end
describe '#manually_disabled_discobot?' do
it 'returns true if the user manually disabled new user tips' do
user.user_option.skip_new_user_tips = true
expect(user.manually_disabled_discobot?).to eq(true)
end
end
end