Fixed unit test.

This commit is contained in:
Martin Edenhofer 2015-08-28 03:08:55 +02:00
parent 0f2b0fc7bb
commit e600598fa5

View file

@ -81,6 +81,8 @@ send via account
adapter_options = options[:outbound][:options]
end
result = nil
begin
# we need to require each channel backend individually otherwise we get a
@ -91,7 +93,7 @@ send via account
driver_class = Object.const_get("Channel::Driver::#{adapter.to_classname}")
driver_instance = driver_class.new
driver_instance.send(adapter_options, mail_params, notification)
result = driver_instance.send(adapter_options, mail_params, notification)
self.status_out = 'ok'
self.last_log_out = ''
save
@ -103,7 +105,7 @@ send via account
self.last_log_out = error
save
end
result
end
end