1 require File.dirname(__FILE__) + '/helper'
3 class TestGod < Test::Unit::TestCase
4 def test_should_create_new_meddle
5 Meddle.expects(:new).with(:port => 1).returns(mock(:monitor => true))
6 God.meddle(:port => 1) {}
9 def test_should_start_monitoring
10 Meddle.any_instance.expects(:monitor)