diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-08-12 16:41:09 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-08-12 16:41:09 -0500 |
commit | 9d9b7212bc5fe04e64a0a034a412f5d92cc96151 (patch) | |
tree | 4c33b4a2722ab75907ab6de7fc5925808b73565f /spec/mailers | |
parent | e25720045988e59f7ddfecebbc02e640dc2f8360 (diff) | |
download | gitlab-ce-9d9b7212bc5fe04e64a0a034a412f5d92cc96151.tar.gz |
Add specs for system note and email when all discussions are resolved
Diffstat (limited to 'spec/mailers')
-rw-r--r-- | spec/mailers/emails/merge_requests_spec.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/mailers/emails/merge_requests_spec.rb b/spec/mailers/emails/merge_requests_spec.rb new file mode 100644 index 00000000000..4d3811af254 --- /dev/null +++ b/spec/mailers/emails/merge_requests_spec.rb @@ -0,0 +1,19 @@ +require 'spec_helper' +require 'email_spec' +require 'mailers/shared/notify' + +describe Notify, "merge request notifications" do + include EmailSpec::Matchers + + describe "#resolved_all_discussions_email" do + let(:user) { create(:user) } + let(:merge_request) { create(:merge_request) } + let(:current_user) { create(:user) } + + subject { Notify.resolved_all_discussions_email(user.id, merge_request.id, current_user.id) } + + it "includes the name of the resolver" do + expect(subject).to have_body_text current_user.name + end + end +end |