Commit 345ebf7e authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '20121-make-spec-mailers-notify_spec-rb-more-robust' into 'master'

Make Notify specs more robust by setting up assignee names

Closes #20121.

See merge request !5427
parent 580f5aa2
...@@ -12,7 +12,7 @@ describe Notify do ...@@ -12,7 +12,7 @@ describe Notify do
context 'for a project' do context 'for a project' do
describe 'items that are assignable, the email' do describe 'items that are assignable, the email' do
let(:current_user) { create(:user, email: "current@email.com") } let(:current_user) { create(:user, email: "current@email.com") }
let(:assignee) { create(:user, email: 'assignee@example.com') } let(:assignee) { create(:user, email: 'assignee@example.com', name: 'John Doe') }
let(:previous_assignee) { create(:user, name: 'Previous Assignee') } let(:previous_assignee) { create(:user, name: 'Previous Assignee') }
shared_examples 'an assignee email' do shared_examples 'an assignee email' do
......
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