mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 01:01:30 +02:00
email notifications management
This commit is contained in:
parent
be8ad1a888
commit
8a0e121f29
4 changed files with 69 additions and 1 deletions
|
@ -48,6 +48,22 @@ describe 'site/settings' do
|
|||
@site.email.wont_equal @new_email
|
||||
EmailWorker.jobs.empty?.must_equal true
|
||||
end
|
||||
|
||||
it 'should update email preferences' do
|
||||
uncheck 'send_emails'
|
||||
uncheck 'send_comment_emails'
|
||||
uncheck 'send_follow_emails'
|
||||
|
||||
@site.send_emails.must_equal true
|
||||
@site.send_comment_emails.must_equal true
|
||||
@site.send_follow_emails.must_equal true
|
||||
|
||||
click_button 'Update Notification Settings'
|
||||
@site.reload
|
||||
@site.send_emails.must_equal false
|
||||
@site.send_comment_emails.must_equal false
|
||||
@site.send_follow_emails.must_equal false
|
||||
end
|
||||
end
|
||||
|
||||
describe 'change password' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue