Fix typo in project invitation declined test

This commit is contained in:
Wei-Meng Lee 2019-04-03 17:04:14 +08:00
parent c8a779a3d2
commit 11fb4d4209
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ module Emails
@member_source = member_source_class.find(source_id)
@invite_email = invite_email
mail(to: recipient(created_by_id, member_source_type == 'project' ? @member_source.group : @member_source),
mail(to: recipient(created_by_id, member_source_type == 'Project' ? @member_source.group : @member_source),
subject: subject('Invitation declined'))
end

View file

@ -779,7 +779,7 @@ describe Notify do
invitee
end
subject { described_class.member_invite_declined_email('project', project.id, project_member.invite_email, maintainer.id) }
subject { described_class.member_invite_declined_email('Project', project.id, project_member.invite_email, maintainer.id) }
it_behaves_like 'an email sent from GitLab'
it_behaves_like 'it should not have Gmail Actions links'