diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-09-29 16:37:50 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-10-01 09:54:56 +0300 |
commit | 5b573130515913dd29216c642334200b1b973245 (patch) | |
tree | ecb0531ba596e0d28f1eb5f099073f45e6dd33ee /spec | |
parent | 2714d5b8147cef39343a1c35ba099ebe6445f5e4 (diff) | |
download | gitlab-ce-5b573130515913dd29216c642334200b1b973245.tar.gz |
Note the original location of a moved project when notifying users of the moveproject_moving
Diffstat (limited to 'spec')
-rw-r--r-- | spec/mailers/notify_spec.rb | 2 | ||||
-rw-r--r-- | spec/services/notification_service_spec.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb index 2c97a521d96..42481a9ea38 100644 --- a/spec/mailers/notify_spec.rb +++ b/spec/mailers/notify_spec.rb @@ -399,7 +399,7 @@ describe Notify do describe 'project was moved' do let(:project) { create(:project) } let(:user) { create(:user) } - subject { Notify.project_was_moved_email(project.id, user.id) } + subject { Notify.project_was_moved_email(project.id, user.id, "gitlab/gitlab") } it_behaves_like 'an email sent from GitLab' diff --git a/spec/services/notification_service_spec.rb b/spec/services/notification_service_spec.rb index 8865335d0d1..520140917aa 100644 --- a/spec/services/notification_service_spec.rb +++ b/spec/services/notification_service_spec.rb @@ -427,15 +427,15 @@ describe NotificationService do should_email(@u_watcher.id) should_email(@u_participating.id) should_not_email(@u_disabled.id) - notification.project_was_moved(project) + notification.project_was_moved(project, "gitlab/gitlab") end def should_email(user_id) - expect(Notify).to receive(:project_was_moved_email).with(project.id, user_id) + expect(Notify).to receive(:project_was_moved_email).with(project.id, user_id, "gitlab/gitlab") end def should_not_email(user_id) - expect(Notify).not_to receive(:project_was_moved_email).with(project.id, user_id) + expect(Notify).not_to receive(:project_was_moved_email).with(project.id, user_id, "gitlab/gitlab") end end end |