Return result. Needed for tests.

This commit is contained in:
Martin Edenhofer 2015-07-03 08:55:00 +02:00
parent 6e19457811
commit fc361b827f

View file

@ -15,7 +15,7 @@ module Channel::EmailSend
channel_object = Object.const_get("Channel::#{channel[:adapter]}")
channel_instance = channel_object.new
channel_instance.send(article, channel, notification)
result = channel_instance.send(article, channel, notification)
channel_instance.disconnect
rescue => e
@ -23,5 +23,6 @@ module Channel::EmailSend
Rails.logger.error e.inspect
Rails.logger.error e.backtrace
end
result
end
end