From 048f420510370b6276db27da5c4f55620badf6b4 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Tue, 2 Aug 2011 16:54:13 +0100 Subject: More interface tweaks. --HG-- rename : mauveserver.conf => etc/mauveserver.conf rename : test/ts_mauve.rb => test/test_mauve.rb --- test/tc_mauve_configuration_builders_server.rb | 16 ++++++++-------- test/test_mauve.rb | 23 +++++++++++++++++++++++ test/ts_mauve.rb | 20 -------------------- 3 files changed, 31 insertions(+), 28 deletions(-) create mode 100644 test/test_mauve.rb delete mode 100644 test/ts_mauve.rb (limited to 'test') diff --git a/test/tc_mauve_configuration_builders_server.rb b/test/tc_mauve_configuration_builders_server.rb index 4330610..270c046 100644 --- a/test/tc_mauve_configuration_builders_server.rb +++ b/test/tc_mauve_configuration_builders_server.rb @@ -53,8 +53,8 @@ EOF assert_equal(detail, h.detail) assert_equal(summary, h.summary) assert_equal(destination, h.destination) - assert_equal(raise_after, h.raise_at) - assert_equal(send_every, h.sleep_interval) + assert_equal(raise_after, h.raise_after) + assert_equal(send_every, h.poll_every) end def test_web_interface_params @@ -94,14 +94,14 @@ server { listener { ip "#{ip}" port #{port} - sleep_interval #{sleep_interval} + poll_every #{sleep_interval} } } EOF assert_nothing_raised { Mauve::ConfigurationBuilder.parse(config) } u = Mauve::UDPServer.instance - assert_equal(sleep_interval, u.sleep_interval) + assert_equal(sleep_interval, u.poll_every) assert_equal(IPAddr.new(ip), u.ip) assert_equal(port, u.port) end @@ -111,14 +111,14 @@ EOF config=<