summaryrefslogtreecommitdiff
path: root/spec/models/gpg_key_spec.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-08-03 00:43:51 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-08-03 21:55:48 +0800
commitbb5f79d43e0bb20bacd5ecd8b66832d9857bd079 (patch)
treeb480f8496e3e93e5a845e4a710e2d46901871413 /spec/models/gpg_key_spec.rb
parentb0464fa4e19e187adc46ec054ccd68832faec08c (diff)
downloadgitlab-ce-bb5f79d43e0bb20bacd5ecd8b66832d9857bd079.tar.gz
Don't include EmailHelpers manually, pick with rspecuse-rspec-support-helper
`:mailer` is needed to pick it easily, while `type: :mailer` is needed for picking it automatically for tests located in spec/mailers/*_spec.rb It's a bit complicated in spec/services/notification_service_spec.rb but we'll leave it alone for now.
Diffstat (limited to 'spec/models/gpg_key_spec.rb')
-rw-r--r--spec/models/gpg_key_spec.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/models/gpg_key_spec.rb b/spec/models/gpg_key_spec.rb
index 59c074199db..e48f20bf53b 100644
--- a/spec/models/gpg_key_spec.rb
+++ b/spec/models/gpg_key_spec.rb
@@ -114,9 +114,7 @@ describe GpgKey do
end
end
- describe 'notification' do
- include EmailHelpers
-
+ describe 'notification', :mailer do
let(:user) { create(:user) }
it 'sends a notification' do