From bb5f79d43e0bb20bacd5ecd8b66832d9857bd079 Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin Date: Thu, 3 Aug 2017 00:43:51 +0800 Subject: Don't include EmailHelpers manually, pick with rspec `: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. --- spec/models/key_spec.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'spec/models/key_spec.rb') diff --git a/spec/models/key_spec.rb b/spec/models/key_spec.rb index d41717d0223..882522c0a97 100644 --- a/spec/models/key_spec.rb +++ b/spec/models/key_spec.rb @@ -1,8 +1,6 @@ require 'spec_helper' -describe Key do - include EmailHelpers - +describe Key, :mailer do describe "Associations" do it { is_expected.to belong_to(:user) } end -- cgit v1.2.1