Commit 396c5c97 authored by Douwe Maan's avatar Douwe Maan

Fix specs

parent 672cbbff
...@@ -3,6 +3,10 @@ require 'spec_helper' ...@@ -3,6 +3,10 @@ require 'spec_helper'
describe Mentionable do describe Mentionable do
include Mentionable include Mentionable
def author
nil
end
describe :references do describe :references do
let(:project) { create(:project) } let(:project) { create(:project) }
......
...@@ -115,6 +115,7 @@ describe NotificationService, services: true do ...@@ -115,6 +115,7 @@ describe NotificationService, services: true do
before do before do
build_team(note.project) build_team(note.project)
note.project.team << [note.author, :master]
ActionMailer::Base.deliveries.clear ActionMailer::Base.deliveries.clear
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment