From b5cac76f5f062ddf4179a7220e5df2e655a4ac6a Mon Sep 17 00:00:00 2001 From: Alex Young Date: Mon, 13 Apr 2015 19:11:24 +0100 Subject: Fix syntax errors in lib/mauve/heartbeat.rb --- test/tc_mauve_heartbeat.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/tc_mauve_heartbeat.rb (limited to 'test') 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 + -- cgit v1.2.3