FEATURE: add option to skip new user tips in first notification. (#10462)

This commit is contained in:
Vinoth Kannan
2020-08-18 13:43:40 +05:30
committed by GitHub
parent 2a7490149c
commit 562180dd9a
11 changed files with 100 additions and 10 deletions

View File

@ -1763,6 +1763,14 @@ describe User do
expect(user.read_first_notification?).to eq(true)
end
end
describe 'when user skipped new user tips' do
it 'should return the right value' do
user.user_option.update!(skip_new_user_tips: true)
expect(user.read_first_notification?).to eq(true)
end
end
end
describe "#featured_user_badges" do