mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:41:25 +08:00
FEATURE: add option to skip new user tips in first notification. (#10462)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user