aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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