From 8f9a67c966873f9dcaf3b1ae00b7dfe1e6ece05f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 23 Aug 2015 23:46:27 +0200 Subject: [PATCH] Fixed routing issues. --- test/unit/email_helper_test.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/unit/email_helper_test.rb b/test/unit/email_helper_test.rb index 8cfa26279..41db1b55f 100644 --- a/test/unit/email_helper_test.rb +++ b/test/unit/email_helper_test.rb @@ -158,7 +158,7 @@ class EmailHelperTest < ActiveSupport::TestCase result = EmailHelper::Probe.inbound( adapter: 'imap', options: { - host: 'www.zammad.com', + host: 'www.znuny.com', port: 993, ssl: true, user: 'some@example.com', @@ -167,7 +167,7 @@ class EmailHelperTest < ActiveSupport::TestCase ) assert_equal('invalid', result[:result]) assert_equal('Connection refused!', result[:message_human]) - assert_equal('www.zammad.com', result[:settings][:options][:host]) + assert_equal('www.znuny.com', result[:settings][:options][:host]) result = EmailHelper::Probe.inbound( adapter: 'imap', @@ -273,8 +273,8 @@ class EmailHelperTest < ActiveSupport::TestCase { adapter: 'smtp', options: { - host: 'www.zammad.com', - port: 25, + host: 'www.znuny.com', + port: 26, start_tls: true, user: 'some@example.com', password: 'password', @@ -284,7 +284,7 @@ class EmailHelperTest < ActiveSupport::TestCase ) assert_equal('invalid', result[:result]) assert_equal('Connection refused!', result[:message_human]) - assert_equal('www.zammad.com', result[:settings][:options][:host]) + assert_equal('www.znuny.com', result[:settings][:options][:host]) result = EmailHelper::Probe.outbound( { @@ -399,6 +399,7 @@ class EmailHelperTest < ActiveSupport::TestCase email: mailbox_user, password: mailbox_password, ) + puts "Result #{result.inspect}" assert_equal('ok', result[:result]) assert_equal('arber.znuny.com', result[:setting][:inbound][:options][:host]) assert_equal('arber.znuny.com', result[:setting][:outbound][:options][:host])