diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-12-06 21:33:55 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-12-06 21:34:49 +0800 |
commit | 5430122c56928849df44520353342150d8f37d51 (patch) | |
tree | d271ee6ddbb372a4025055145e600d76d7134998 /spec/models | |
parent | 46d7c1d2b3cf87023cb6bcf40dd53aa79606d203 (diff) | |
download | gitlab-ce-5430122c56928849df44520353342150d8f37d51.tar.gz |
Now we need to include EmailHelpers for each test
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/deploy_key_spec.rb | 2 | ||||
-rw-r--r-- | spec/models/key_spec.rb | 2 |
2 files changed, 4 insertions, 0 deletions
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 |