aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-08-04 16:11:37 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-08-04 16:11:37 +0100
commit6fbd9fcae218b675b298d7b4101e2f184e56818c (patch)
treef04f0aa7266711c40b65ad60f29a106747c05202 /test
parentb3a4345e1359f77011bd312b1afeed8eb2b97c91 (diff)
Updated pop3 server to be configurable
Diffstat (limited to 'test')
-rw-r--r--test/tc_mauve_configuration_builders_server.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/tc_mauve_configuration_builders_server.rb b/test/tc_mauve_configuration_builders_server.rb
index 270c046..6f4255f 100644
--- a/test/tc_mauve_configuration_builders_server.rb
+++ b/test/tc_mauve_configuration_builders_server.rb
@@ -85,6 +85,25 @@ EOF
assert_equal(session_secret, Mauve::HTTPServer.instance.session_secret)
end
+ def test_pop3_server_params
+ ip = "::1"
+ port = 1101
+
+ config=<<EOF
+server {
+ pop3_server {
+ ip "#{ip}"
+ port #{port}
+ }
+}
+EOF
+ assert_nothing_raised { Mauve::ConfigurationBuilder.parse(config) }
+
+ assert_equal(ip, Mauve::Pop3Server.instance.ip)
+ assert_equal(port, Mauve::Pop3Server.instance.port)
+
+ end
+
def test_listener_params
ip = "::"
port = 12341