From 5430122c56928849df44520353342150d8f37d51 Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin Date: Tue, 6 Dec 2016 21:33:55 +0800 Subject: [PATCH] Now we need to include EmailHelpers for each test --- spec/models/deploy_key_spec.rb | 2 ++ spec/models/key_spec.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/spec/models/deploy_key_spec.rb b/spec/models/deploy_key_spec.rb index 3a2252ea40c..8ef8218cf74 100644 --- a/spec/models/deploy_key_spec.rb +++ b/spec/models/deploy_key_spec.rb @@ -1,6 +1,8 @@ require 'spec_helper' describe DeployKey, models: true do + include EmailHelpers + describe "Associations" do it { is_expected.to have_many(:deploy_keys_projects) } it { is_expected.to have_many(:projects) } diff --git a/spec/models/key_spec.rb b/spec/models/key_spec.rb index 0c0444e1f2a..c5a5467ca99 100644 --- a/spec/models/key_spec.rb +++ b/spec/models/key_spec.rb @@ -1,6 +1,8 @@ require 'spec_helper' describe Key, models: true do + include EmailHelpers + describe "Associations" do it { is_expected.to belong_to(:user) } end