Fix email not being sent after project export
This commit is contained in:
parent
3d1cade13f
commit
3a33a79571
2 changed files with 17 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
Project #{@project.name} was exported successfully.
|
||||
%p
|
||||
The project export can be downloaded from:
|
||||
= link_to download_export_namespace_project_url(@project.namespace, @project), rel: 'nofollow', download: '', do
|
||||
= link_to download_export_namespace_project_url(@project.namespace, @project), rel: 'nofollow', download: '' do
|
||||
= @project.name_with_namespace + " export"
|
||||
%p
|
||||
The download link will expire in 24 hours.
|
||||
|
|
|
@ -1181,6 +1181,22 @@ describe NotificationService, services: true do
|
|||
should_not_email(@u_disabled)
|
||||
end
|
||||
end
|
||||
|
||||
describe '#project_exported' do
|
||||
it do
|
||||
notification.project_exported(project, @u_disabled)
|
||||
|
||||
should_only_email(@u_disabled)
|
||||
end
|
||||
end
|
||||
|
||||
describe '#project_not_exported' do
|
||||
it do
|
||||
notification.project_not_exported(project, @u_disabled, ['error'])
|
||||
|
||||
should_only_email(@u_disabled)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe 'GroupMember' do
|
||||
|
|
Loading…
Reference in a new issue