diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-02-28 12:49:59 +0300 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 16:40:41 +0300 |
commit | c1281982bd7975b45bed5b8e2c5ef5e242ea18fd (patch) | |
tree | a4a76d4cd9ab0d4ca324902355fa60ced1ecdb9b /spec/models/gpg_key_spec.rb | |
parent | f0fe1b9d4397e6c1c6aa2da6e371e234db774fe2 (diff) |
notification email on add new gpg key
Diffstat (limited to 'spec/models/gpg_key_spec.rb')
-rw-r--r-- | spec/models/gpg_key_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/models/gpg_key_spec.rb b/spec/models/gpg_key_spec.rb index 695a2f65c09..4292892da4f 100644 --- a/spec/models/gpg_key_spec.rb +++ b/spec/models/gpg_key_spec.rb @@ -103,4 +103,18 @@ describe GpgKey do end end end + + describe 'notification' do + include EmailHelpers + + let(:user) { create(:user) } + + it 'sends a notification' do + perform_enqueued_jobs do + create(:gpg_key, user: user) + end + + should_email(user) + end + end end |