diff options
author | Alex Young <alex@bytemark.co.uk> | 2015-04-13 19:11:24 +0100 |
---|---|---|
committer | Alex Young <alex@bytemark.co.uk> | 2015-04-13 19:11:24 +0100 |
commit | b5cac76f5f062ddf4179a7220e5df2e655a4ac6a (patch) | |
tree | 17b5843dbb3d8ed83653263c5a1bce9977111a1b /test | |
parent | 1f1de026a35c3041df70076c21a8e4751891b1e7 (diff) |
Fix syntax errors in lib/mauve/heartbeat.rb
Diffstat (limited to 'test')
-rw-r--r-- | test/tc_mauve_heartbeat.rb | 20 |
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 + |