diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-10 10:53:40 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-10 10:53:40 +0300 |
commit | cfc792b9ca064990e6540cb742e80529ea669a81 (patch) | |
tree | 147cd4256319990cebbc02fe8e4fbbbe06f5720a /spec/services/notification_service_spec.rb | |
parent | 93c6764dacd4c605027ef1cd367d3aebe420b223 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/notification_service_spec.rb')
-rw-r--r-- | spec/services/notification_service_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/services/notification_service_spec.rb b/spec/services/notification_service_spec.rb index 25900043f11..c088cb376b3 100644 --- a/spec/services/notification_service_spec.rb +++ b/spec/services/notification_service_spec.rb @@ -210,6 +210,18 @@ describe NotificationService, :mailer do end end + describe 'AccessToken' do + describe '#access_token_about_to_expire' do + let_it_be(:user) { create(:user) } + + it 'sends email to the token owner' do + expect(notification.access_token_about_to_expire(user)).to be_truthy + + should_email user + end + end + end + describe 'Notes' do context 'issue note' do let(:project) { create(:project, :private) } |