diff options
| author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-04-11 18:23:12 -0300 |
|---|---|---|
| committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-04-11 20:50:26 -0300 |
| commit | 93a10f17e0c84074580eaf1b101af2a0fffd19ed (patch) | |
| tree | cf601b69b92f4db61a0b41daf6e7a0742a0a0070 /spec/services | |
| parent | 9a44d6977ad27a443538b2b6c34b3fdd722e9bd6 (diff) | |
| download | gitlab-ce-93a10f17e0c84074580eaf1b101af2a0fffd19ed.tar.gz | |
Reuse `User#notification_settings_for` when it's possible
Diffstat (limited to 'spec/services')
| -rw-r--r-- | spec/services/notification_service_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/notification_service_spec.rb b/spec/services/notification_service_spec.rb index c4d52584a4b..d7c72dc0811 100644 --- a/spec/services/notification_service_spec.rb +++ b/spec/services/notification_service_spec.rb @@ -89,8 +89,8 @@ describe NotificationService, services: true do note.project.group.add_user(@u_watcher, GroupMember::MASTER) note.project.save - @u_watcher.notification_settings.find_by(source: note.project).participating! - @u_watcher.notification_settings.find_by(source: note.project.group).global! + @u_watcher.notification_settings_for(note.project).participating! + @u_watcher.notification_settings_for(note.project.group).global! ActionMailer::Base.deliveries.clear end |
