Now we need to include EmailHelpers for each test

This commit is contained in:
Lin Jen-Shin 2016-12-06 21:33:55 +08:00
parent 46d7c1d2b3
commit 5430122c56
2 changed files with 4 additions and 0 deletions

View file

@ -1,6 +1,8 @@
require 'spec_helper' require 'spec_helper'
describe DeployKey, models: true do describe DeployKey, models: true do
include EmailHelpers
describe "Associations" do describe "Associations" do
it { is_expected.to have_many(:deploy_keys_projects) } it { is_expected.to have_many(:deploy_keys_projects) }
it { is_expected.to have_many(:projects) } it { is_expected.to have_many(:projects) }

View file

@ -1,6 +1,8 @@
require 'spec_helper' require 'spec_helper'
describe Key, models: true do describe Key, models: true do
include EmailHelpers
describe "Associations" do describe "Associations" do
it { is_expected.to belong_to(:user) } it { is_expected.to belong_to(:user) }
end end