aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/tc_mauve_heartbeat.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/tc_mauve_heartbeat.rb b/test/tc_mauve_heartbeat.rb
new file mode 100644
index 0000000..5406e3c
--- /dev/null
+++ b/test/tc_mauve_heartbeat.rb
@@ -0,0 +1,20 @@
+# encoding: utf-8
+
+$:.unshift "../lib"
+
+require 'th_mauve'
+require 'th_mauve_resolv'
+require 'mauve/server'
+require 'mauve/heartbeat'
+
+class TcMauveHeartbeat < Mauve::UnitTest
+ include Mauve
+
+ def test_errors_on_bad_destination
+ heartbeat = Heartbeat.instance
+ assert_raises(ArgumentError) do
+ heartbeat.destination = 1
+ end
+ end
+end
+