refactor observers test since email logic moved to service

This commit is contained in:
Dmitriy Zaporozhets 2013-03-26 19:00:54 +02:00
parent ce0945efcd
commit 3728c4904e
7 changed files with 19 additions and 164 deletions

View file

@ -1,4 +1,4 @@
class ActivityObserver < ActiveRecord::Observer
class ActivityObserver < BaseObserver
observe :issue, :merge_request, :note, :milestone
def after_create(record)

View file

@ -1,6 +1,4 @@
class BaseObserver < ActiveRecord::Observer
protected
def notification
NotificationService.new
end