debian-mirror-gitlab/spec/mailers/emails/merge_requests_spec.rb

21 lines
535 B
Ruby
Raw Normal View History

2019-12-26 22:10:19 +05:30
# frozen_string_literal: true
2016-09-13 17:45:13 +05:30
require 'spec_helper'
require 'email_spec'
2017-08-17 22:00:37 +05:30
describe Emails::MergeRequests do
2016-09-13 17:45:13 +05:30
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